odd problem with limit and order by

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sandy771
Posts: 194
Joined: Tue 22 May 2007 13:57

odd problem with limit and order by

Post by sandy771 » Fri 22 Feb 2013 10:02

I have an sqlite database with quite a few rows, say 1 million.

Using a uniquery I execute a sql query of the form

select a, b, c, x, y, z from table where y > 0 limit 500

everything works OK and UniQuery->RecordCount reports 500 after the query

if I change the query to:

select a, b, c, x, y, z from table where y > 0 order by b limit 500

UniQuery->RecordCount is 1 million !!

according to the sqlite web site I am formatting my query correctly any ideas?

http://sqlite.org/lang_select.html

ZEuS
Devart Team
Posts: 240
Joined: Thu 05 Apr 2012 07:32

Re: odd problem with limit and order by

Post by ZEuS » Fri 22 Feb 2013 12:49

Thank you for the information.
We have fixed the error and will include the fix in the nearest UniDAC build.

Post Reply