erw-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Erw-devel] LIMIT error with PostgreSQL


From: erw-devel
Subject: [Erw-devel] LIMIT error with PostgreSQL
Date: Fri, 27 Jun 2003 16:58:17 +0900

From PostgreSQL 7.3 (and maybe earlier -- haven't checked), LIMIT needs to be be done as:

SELECT ... ORDER BY ... LIMIT n OFFSET x ... ;
n = number of rows to return
x = number of rows to skip

The patch for ERW.php is:
1566d1565
<               case "pgsql": return "LIMIT $count OFFSET $offset";

Share and enjoy.

-------------------------------------------------------------
Larry Stanbery, RHCE            address@hidden
Network Manager                 phone: 0985-85-5931
Miyazaki International College  http://www.miyazaki-mic.ac.jp
GPG Key ID: 2CEFA662





reply via email to

[Prev in Thread] Current Thread [Next in Thread]