Lua SQL: peeking at cursors

Posted by NP on Stack Overflow See other posts from Stack Overflow or by NP
Published on 2010-05-06T17:51:40Z Indexed on 2010/05/06 17:58 UTC
Read the original article Hit count: 281

Filed under:
|
|

I am using LuaSQL, and query for a result set using con:execute(sql_stmt), which returns a cursor.

How do I see if there is at least one row in that resultset, without doing a cursor:fetch to pop that first row?

© Stack Overflow or respective owner

Related posts about lua

Related posts about luasql