[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaSQL Question
- From: Petite Abeille <petite_abeille@...>
- Date: Thu, 20 Jan 2011 20:02:56 +0100
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.