DBResultSet isEmpty?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

DBResultSet isEmpty?

Ricardo Nogueira
The test in DBResultSet >> isEmpty got it wrong:

^numRows == -1
    ifTrue: [self first isNil] "Have to retrieve first row"
    ifFalse: [numRows ~~ 0]

Should be:
    ifFalse: [numRows==0]


Ricardo


Reply | Threaded
Open this post in threaded view
|

Re: DBResultSet isEmpty?

Blair McGlashan
Ricardo

"Ricardo Nogueira" <[hidden email]> wrote in message
news:9k03rn$1tv0t$[hidden email]...
> The test in DBResultSet >> isEmpty got it wrong:
>
> ^numRows == -1
>     ifTrue: [self first isNil] "Have to retrieve first row"
>     ifFalse: [numRows ~~ 0]
>
> Should be:
>     ifFalse: [numRows==0]
>

Thanks. Defect no. 300, fixed for the next patch level/release.

Regards

Blair