Closed sqllyw closed 2 years ago
for example: res may have 10 records, you ask for 1 then eof == false, if you ask for 10 then eof == true
Thanks for the clarification, example:
let sql = "select * from country where country = 'USA'";
the res will have only one record, but eof might differ:
if you pass 1 to res.fetch(1...) eof will always be false, if you pass res.fetch('all'...) eof will be true
is this the correct understanding?
as long as more than 1 even the res has only one record
Hi,
got class method as follow:
do I have to do a if (eof) ? sometimes eof is false while err is null, when the recs_num is 1