Navigation Menu

Skip to content

Commit

Permalink
Initialize the sequence associated with serial PK of editable layer
Browse files Browse the repository at this point in the history
  • Loading branch information
strk committed Oct 13, 2021
1 parent 368cb40 commit a336096
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/src/python/test_provider_postgres.py
Expand Up @@ -134,6 +134,7 @@ def getSource(self):
"(1, 100, 'Orange', 'oranGe', '1', TIMESTAMP '2020-05-03 12:13:14', '2020-05-03', '12:13:14', '0101000020E61000006891ED7C3F9551C085EB51B81E955040'),"
"(2, 200, 'Apple', 'Apple', '2', TIMESTAMP '2020-05-04 12:14:14', '2020-05-04', '12:14:14', '0101000020E6100000CDCCCCCCCC0C51C03333333333B35140'),"
"(4, 400, 'Honey', 'Honey', '4', TIMESTAMP '2021-05-04 13:13:14', '2021-05-04', '13:13:14', '0101000020E610000014AE47E17A5450C03333333333935340')")
self.execSQLCommand("SELECT setval('qgis_test.\"editData_pk_seq\"', 5, true)")
vl = QgsVectorLayer(
self.dbconn +
' sslmode=disable key=\'pk\' srid=4326 type=POINT table="qgis_test"."editData" (geom) sql=',
Expand Down

0 comments on commit a336096

Please sign in to comment.