diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pl/plpython/expected/plpython_trigger.out | 4 | ||||
-rw-r--r-- | src/pl/plpython/sql/plpython_trigger.sql | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pl/plpython/expected/plpython_trigger.out b/src/pl/plpython/expected/plpython_trigger.out index 4c46b2b8f21..25060b09b78 100644 --- a/src/pl/plpython/expected/plpython_trigger.out +++ b/src/pl/plpython/expected/plpython_trigger.out @@ -476,7 +476,7 @@ DROP TRIGGER stupid_trigger6 ON trigger_test; -- TD keys not corresponding to row columns CREATE FUNCTION stupid7() RETURNS trigger AS $$ - TD["new"] = {'a': 'foo', 'b': 'bar'} + TD["new"] = {'v': 'foo', 'a': 'bar'} return "MODIFY"; $$ LANGUAGE plpythonu; CREATE TRIGGER stupid_trigger7 @@ -490,7 +490,7 @@ DROP TRIGGER stupid_trigger7 ON trigger_test; -- Unicode variant CREATE FUNCTION stupid7u() RETURNS trigger AS $$ - TD["new"] = {u'a': 'foo', u'b': 'bar'} + TD["new"] = {u'v': 'foo', u'a': 'bar'} return "MODIFY" $$ LANGUAGE plpythonu; CREATE TRIGGER stupid_trigger7 diff --git a/src/pl/plpython/sql/plpython_trigger.sql b/src/pl/plpython/sql/plpython_trigger.sql index 2a4859f2aa2..9727f44f8b4 100644 --- a/src/pl/plpython/sql/plpython_trigger.sql +++ b/src/pl/plpython/sql/plpython_trigger.sql @@ -253,7 +253,7 @@ DROP TRIGGER stupid_trigger6 ON trigger_test; CREATE FUNCTION stupid7() RETURNS trigger AS $$ - TD["new"] = {'a': 'foo', 'b': 'bar'} + TD["new"] = {'v': 'foo', 'a': 'bar'} return "MODIFY"; $$ LANGUAGE plpythonu; @@ -270,7 +270,7 @@ DROP TRIGGER stupid_trigger7 ON trigger_test; CREATE FUNCTION stupid7u() RETURNS trigger AS $$ - TD["new"] = {u'a': 'foo', u'b': 'bar'} + TD["new"] = {u'v': 'foo', u'a': 'bar'} return "MODIFY" $$ LANGUAGE plpythonu; |