lua-users home
lua-l archive

Re: LuaSQL Question

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Jan 20, 2011, at 6:46 PM, Philipp Janda wrote:
> local function cursor_finalizer( cursor, v1, ... )
> if v1 == nil then
> cursor:close()
> end
> return v1, ...
> end
That's not going to work either... as the first value could be legitimately nil (aka null), e.g.:
select 1 as foo, 2 as bar from dual
select null as foo, 2 as bar from dual
The code above will stop at the first row and never fetch the second one.

AltStyle によって変換されたページ (->オリジナル) /