Skip to content
Permalink
Browse files
Initialize the sequence associated with serial PK of editable layer
  • Loading branch information
strk committed Oct 13, 2021
1 parent 368cb40 commit a3360965f6f0844abc9be74d32d070784e847930
Showing with 1 addition and 0 deletions.
  1. +1 −0 tests/src/python/test_provider_postgres.py
@@ -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=',

0 comments on commit a336096

Please sign in to comment.