[QGIS Commit] r9095 - trunk/qgis/src/providers/postgres

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Aug 20 11:16:50 EDT 2008


Author: jef
Date: 2008-08-20 11:16:49 -0400 (Wed, 20 Aug 2008)
New Revision: 9095

Modified:
   trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
Log:
remove 'with hold' from postgres cursors

Modified: trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
===================================================================
--- trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp	2008-08-20 14:33:03 UTC (rev 9094)
+++ trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp	2008-08-20 15:16:49 UTC (rev 9095)
@@ -383,7 +383,7 @@
 {
   try
   {
-    QString declare = QString("declare %1 binary cursor with hold for select %2")
+    QString declare = QString("declare %1 binary cursor for select %2")
       .arg(cursorName).arg(quotedIdentifier(primaryKey));
 
     if(fetchGeometry)
@@ -2434,7 +2434,7 @@
 
   // get the same value using a binary cursor
 
-  QString oidDeclare = QString("declare oidcursor binary cursor with hold for select regclass(%1)::oid").arg( quotedValue(mSchemaTableName) );
+  QString oidDeclare = QString("declare oidcursor binary cursor for select regclass(%1)::oid").arg( quotedValue(mSchemaTableName) );
   // set up the cursor
   PQexecNR(connectionRO, oidDeclare.toUtf8());
   QString fetch = "fetch forward 1 from oidcursor";



More information about the QGIS-commit mailing list