Created
March 9, 2016 16:20
-
-
Save jef-n/464bdb303ea0f7b29fc3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur ../orig/gdal-2.0.2/ogr/ogrsf_frmts/pg/ogrpgtablelayer.cpp ogr/ogrsf_frmts/pg/ogrpgtablelayer.cpp | |
--- ../orig/gdal-2.0.2/ogr/ogrsf_frmts/pg/ogrpgtablelayer.cpp 2016-01-23 18:30:55.000000000 +0100 | |
+++ ogr/ogrsf_frmts/pg/ogrpgtablelayer.cpp 2016-03-09 17:14:16.121854000 +0100 | |
@@ -292,6 +292,8 @@ | |
CPLString osEscapedTableNameSingleQuote = OGRPGEscapeString(hPGConn, pszTableName); | |
const char* pszEscapedTableNameSingleQuote = osEscapedTableNameSingleQuote.c_str(); | |
+ poDS->EndCopy(); | |
+ | |
/* See #1889 for why we don't use 'AND a.attnum = ANY(i.indkey)' */ | |
osCommand.Printf("SELECT a.attname, a.attnum, t.typname, " | |
"t.typname = %s AS isfid " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment