Skip to content
Permalink
Browse files
remove 'with hold' from postgres cursors
git-svn-id: http://svn.osgeo.org/qgis/trunk@9095 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 20, 2008
1 parent 109c9f4 commit f2cdcca6bc14c59db3a3441dff743216c4b96e33
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/postgres/qgspostgresprovider.cpp
@@ -383,7 +383,7 @@ bool QgsPostgresProvider::declareCursor(const QString &cursorName,
{
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 @@ bool QgsPostgresProvider::deduceEndian()

// 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";

0 comments on commit f2cdcca

Please sign in to comment.