Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 92756

SQLite Incorrect Selection

$
0
0

I have an AIR app that is using a built-in SQLite database. Having an issue selecting however. My SQL is:

 

SELECT id,fname,lname FROM users ORDER BY datetime(timeentered) DESC LIMIT 500

 

The DB only has the one users table. This select is working, but is selecting 7 records - when there are only 5 items in the database. In the callback from the select I am tracing out the id, fname, and lname and I get:

 

selNamesResult 0 4 fred durst

selNamesResult 1 5 jen orange

selNamesResult 2 5 jen orange

selNamesResult 3 4 fred durst

selNamesResult 4 3 dave O'Donnell

selNamesResult 5 2 Dave Mennenoh

selNamesResult 6 1 Dave Mennenoh

 

Here I trace the loop count, then the id from the database, then fname, lname. As you can see id 4 and 5 are returned twice... Using the same select in various SQLite database browsers returns the proper set of 5.

 

Anybody know why I'm getting 7?


Viewing all articles
Browse latest Browse all 92756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>