Skip to content

Commit f2cdcca

Browse files
author
jef
committed
remove 'with hold' from postgres cursors
git-svn-id: http://svn.osgeo.org/qgis/trunk@9095 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 109c9f4 commit f2cdcca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/postgres/qgspostgresprovider.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ bool QgsPostgresProvider::declareCursor(const QString &cursorName,
383383
{
384384
try
385385
{
386-
QString declare = QString("declare %1 binary cursor with hold for select %2")
386+
QString declare = QString("declare %1 binary cursor for select %2")
387387
.arg(cursorName).arg(quotedIdentifier(primaryKey));
388388

389389
if(fetchGeometry)
@@ -2434,7 +2434,7 @@ bool QgsPostgresProvider::deduceEndian()
24342434

24352435
// get the same value using a binary cursor
24362436

2437-
QString oidDeclare = QString("declare oidcursor binary cursor with hold for select regclass(%1)::oid").arg( quotedValue(mSchemaTableName) );
2437+
QString oidDeclare = QString("declare oidcursor binary cursor for select regclass(%1)::oid").arg( quotedValue(mSchemaTableName) );
24382438
// set up the cursor
24392439
PQexecNR(connectionRO, oidDeclare.toUtf8());
24402440
QString fetch = "fetch forward 1 from oidcursor";

0 commit comments

Comments
 (0)