This website requires JavaScript.
Explore
Help
Sign In
hasura
/
graphql-engine
Watch
1
Star
0
Fork
0
You've already forked graphql-engine
mirror of
https://github.com/hasura/graphql-engine.git
synced
2024-12-18 21:12:09 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
44347d2d74
graphql-engine
/
server
/
tests-py
/
queries
/
event_triggers
/
delete_query
/
teardown.yaml
7 lines
88 B
YAML
Raw
Normal View
History
Unescape
Escape
python based tests (#387)
2018-09-18 09:21:57 +03:00
type
:
bulk
args
:
-
type
:
run_sql
args
:
sql
:
|
server: template the schema and table names in the event trigger PG functions Earlier, while creating the event trigger's internal postgres trigger, we used to get the name of the table from the `TG_TABLE_NAME` special trigger variable. Using this with normal tables works fine, but it breaks when the parent table is partitioned because we associate the ET configuration in the schema only with the original table (as it should be). In this PR, we supply the table name and schema name through template variables instead of using `TG_TABLE_NAME` and `TG_TABLE_SCHEMA`, so that event triggers work with a partitioned table as well. TODO: - [x] Changelog - [x] unit test (ET on partition table) GitOrigin-RevId: 556376881a85525300dcf64da0611ee9ad387eb0
2021-01-06 23:21:39 +03:00
drop table hge_tests.test_t1;
Reference in New Issue
Copy Permalink