tufanv Expert Licensed User Longtime User Mar 14, 2014 #1 Hello, I am using names.sql file in my app . It has 1432 record in "tblnames". In my app i can find every record upto 1000th record but after 1000th record i cant get them. When i look at sqlite i see that it is divided into 2 pages when browsing data and second page is not being found by my app. What can i do ? Thank you
Hello, I am using names.sql file in my app . It has 1432 record in "tblnames". In my app i can find every record upto 1000th record but after 1000th record i cant get them. When i look at sqlite i see that it is divided into 2 pages when browsing data and second page is not being found by my app. What can i do ? Thank you
tufanv Expert Licensed User Longtime User Mar 14, 2014 #3 cursornames = sqlnames.ExecQuery("SELECT * FROM tblnames where win<5 ORDER BY id ASC ") cursornames.Position = 0 h2 = cursornames.GetString("name") The code works perfect for the win>5 but win<5 is after record number 1100 till 1400 so after 1000th record the problem occurs Upvote 0
cursornames = sqlnames.ExecQuery("SELECT * FROM tblnames where win<5 ORDER BY id ASC ") cursornames.Position = 0 h2 = cursornames.GetString("name") The code works perfect for the win>5 but win<5 is after record number 1100 till 1400 so after 1000th record the problem occurs
eps Expert Licensed User Longtime User Mar 14, 2014 #4 if you execute this code in SQLite browser or Firefox Extension what does it return, the same or different? If you execute this, in SQLite browser or FF extension, what does it return? Code: Copy SELECT count(*) FROM tblnames where win<5 ORDER BY id ASC and then SELECT count(*) FROM tblnames where win<5 Upvote 0
if you execute this code in SQLite browser or Firefox Extension what does it return, the same or different? If you execute this, in SQLite browser or FF extension, what does it return? Code: Copy SELECT count(*) FROM tblnames where win<5 ORDER BY id ASC and then SELECT count(*) FROM tblnames where win<5
tufanv Expert Licensed User Longtime User Mar 14, 2014 #5 both shows 0 in sqlite. But it is strange i tried SELECT count(*) FROM tblnames where win>43435434343 ORDER BY id ASC it shows 1437 records ( all the records) altough my biggest value for win is 29 Upvote 0
both shows 0 in sqlite. But it is strange i tried SELECT count(*) FROM tblnames where win>43435434343 ORDER BY id ASC it shows 1437 records ( all the records) altough my biggest value for win is 29
eps Expert Licensed User Longtime User Mar 14, 2014 #7 I suspect it's a bit of javascript funkiness where it's only (possibly) considering the first character... Upvote 0
I suspect it's a bit of javascript funkiness where it's only (possibly) considering the first character...
tufanv Expert Licensed User Longtime User Mar 14, 2014 #8 field name is win but the values are digits sir. it is not configured as text in sql file Upvote 0
tufanv Expert Licensed User Longtime User Mar 14, 2014 #9 ok i fixed it. You gave me a good clue about it. I changed the win field to numeric. It is ok now ! thank you very much for the help Upvote 0
ok i fixed it. You gave me a good clue about it. I changed the win field to numeric. It is ok now ! thank you very much for the help
eps Expert Licensed User Longtime User Mar 14, 2014 #10 pls Like the post that helped, it may help others your issue rang a bell about another issue I'd seen recently. Upvote 0
pls Like the post that helped, it may help others your issue rang a bell about another issue I'd seen recently.