[Koha-devel] [Koha-patches] [PATCH] BUG-2393: ENHANCEMENT: SearchMember() uses "cardnumber%" wildcard - if other search-types fail

Joe Atzberger ohiocore at gmail.com
Fri Jul 25 20:40:47 CEST 2008


> On Fri, Jul 25, 2008 at 1:57 AM, paul POULAIN <paul.poulain at biblibre.com>
> wrote:
> > Please note that the SQL "LIMIT" pragma is mySQL specific. So it must be
> avoided.


Paul, I'm not sure what gave you that impression.  Maybe you are thinking of
Oracle, where a "rownum" construction is used.  (But not much I'm going to
do is going to get us near running on Oracle.)

In practice, the only other DB we've even seen work to support is postgres,
so it should be sufficient to show that it supports limit clauses.  It does:
http://www.postgresql.org/docs/7/static/sql-select.htm

Pg supports OFFSET also.  I suspect Koha will move to a broader DBI
management interface before Oracle is fully supported.  In other words, I
wouldn't change any queries for it, and certainly not for 3.0.

I think there are plenty of uses of "LIMIT" in the code, and if this
> is something we're working towards, I'll start eliminating them in any
> code I work on.
>

Please don't, they are there for good reason!

--joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20080725/e6502b92/attachment-0002.htm>


More information about the Koha-devel mailing list