Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
2 additions
and
2 deletions.
-
+1
−1
src/core/qgsvectorlayer.cpp
-
+1
−1
tests/testdata/provider/testdata_pg.sql
|
@@ -1566,7 +1566,7 @@ bool QgsVectorLayer::setDataProvider( QString const &provider, const QgsDataProv |
|
|
// so it has to be set before initializing the provider, |
|
|
// this manipulation is necessary to preserve default behavior when |
|
|
// "trust layer metadata" project level option is set and checkPrimaryKeyUnicity |
|
|
// was not explicitely passed in the uri |
|
|
// was not explicitly passed in the uri |
|
|
if ( provider.compare( QLatin1String( "postgres" ) ) == 0 ) |
|
|
{ |
|
|
const QString checkUnicityKey { QStringLiteral( "checkPrimaryKeyUnicity" ) }; |
|
|
|
@@ -543,7 +543,7 @@ INSERT INTO qgis_test.check_constraints VALUES ( |
|
|
-- |
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS qgis_test.b21839_pk_unicity CASCADE; |
|
|
DROP TABLE IF EXISTS qgis_test.b21839_pk_unicity; |
|
|
CREATE TABLE qgis_test.b21839_pk_unicity |
|
|
( |
|
|
pk serial NOT NULL, |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.