We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7b52d commit 8b263e4Copy full SHA for 8b263e4
python/plugins/db_manager/db_plugins/postgis/plugins/versioning/dlg_versioning.py
@@ -254,7 +254,7 @@ def sql_updatesView(self):
254
CREATE OR REPLACE RULE "_DELETE" AS ON DELETE TO %(view)s DO INSTEAD
255
DELETE FROM %(schematable)s WHERE %(origpkey)s = old.%(origpkey)s;
256
CREATE OR REPLACE RULE "_INSERT" AS ON INSERT TO %(view)s DO INSTEAD
257
- INSERT INTO %(schematable)s (%(cols)s) VALUES (%(newcols)s);
+ INSERT INTO %(schematable)s (%(cols)s) VALUES (%(newcols)s) RETURNING %(cols)s;
258
CREATE OR REPLACE RULE "_UPDATE" AS ON UPDATE TO %(view)s DO INSTEAD
259
UPDATE %(schematable)s SET %(assign)s WHERE %(origpkey)s = NEW.%(origpkey)s;""" % {'view': self.view,
260
'schematable': self.schematable,
0 commit comments