[postgis-commits] svn - r2671 - trunk/lwgeom
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Thu Jul 26 11:55:38 PDT 2007
Author: mleslie
Date: 2007-07-26 11:55:37 -0700 (Thu, 26 Jul 2007)
New Revision: 2671
Modified:
trunk/lwgeom/long_xact.sql.in
Log:
Applyed Michael Fuhrs patch to fix the reserved word issue against PostgreSQL 8.3.
Modified: trunk/lwgeom/long_xact.sql.in
===================================================================
--- trunk/lwgeom/long_xact.sql.in 2007-07-24 21:30:29 UTC (rev 2670)
+++ trunk/lwgeom/long_xact.sql.in 2007-07-26 18:55:37 UTC (rev 2671)
@@ -229,7 +229,7 @@
RETURNS TEXT
AS '
DECLARE
- query text;
+ "query" text;
exists bool;
rec RECORD;
@@ -243,13 +243,13 @@
IF NOT exists
THEN
- query = ''CREATE TABLE authorization_table (
+ "query" = ''CREATE TABLE authorization_table (
toid oid, -- table oid
rid text, -- row id
expires timestamp,
authid text
)'';
- EXECUTE query;
+ EXECUTE "query";
END IF;
exists = ''f'';
@@ -259,7 +259,7 @@
END LOOP;
IF NOT exists THEN
- query = ''CREATE VIEW authorized_tables AS '' ||
+ "query" = ''CREATE VIEW authorized_tables AS '' ||
''SELECT '' ||
#ifdef HAS_SCHEMAS
''n.nspname as schema, '' ||
@@ -276,7 +276,7 @@
'' AND c.relnamespace = n.oid'' ||
#endif
'' AND t.tgfoid = p.oid and t.tgrelid = c.oid'';
- EXECUTE query;
+ EXECUTE "query";
END IF;
RETURN ''Long transactions support enabled'';
@@ -313,8 +313,6 @@
RETURNS TEXT
AS '
DECLARE
- query text;
- exists bool;
rec RECORD;
BEGIN
More information about the postgis-commits
mailing list