graphql-engine/server/tests-py/queries/event_triggers/update_query/create-setup.yaml
Rakesh Emmadi e5eb0c4f34 fix row comparison operator in event triggers (fix #2036) (#2868)
Update trigger is failing if any json/geometry columns are present in
event payload rows. Use '*<>' operator instead of '<>' to compare the
internal binary representation of rows if '<>' doesn’t work.
2019-09-12 18:22:01 -05:00

26 lines
438 B
YAML

type: bulk
args:
- type: run_sql
args:
sql: |
create table hge_tests.test_t1(
c1 int,
c2 text,
c3 json
);
- type: track_table
args:
schema: hge_tests
name: test_t1
- type: create_event_trigger
args:
name: t1_cols
table:
schema: hge_tests
name: test_t1
insert:
columns: "*"
update:
columns: ["c2", "c3"]
webhook: http://127.0.0.1:5592