sql: second lookup for space names
This patch add second lookup for space name in the following cases: - foreign table in tuple foreign key creation clause; - foreign table in field foreign key creation clause; - table in DROP TABLE statement; - view in DROP VIEW statement; - table in SELECT FROM statement; - table in DELETE FROM statement; - table in TRUNCATE TABLE statement; - table in UPDATE TABLE statement; - table in INSERT INTO statement; - table in CREATE INDEX statement; - table in DROP INDEX statement; - table in PRAGMA statement; - table in SHOW CREATE TABLE statement; - table in CREATE TRIGGER statement; - table in ALTER TABLE statements; Table names in expressions will be supported in subsequent commits. Part of #4467 NO_DOC=will be added later NO_CHANGELOG=will be added later
Showing
- src/box/sql.c 9 additions, 1 deletionsrc/box/sql.c
- src/box/sql/build.c 17 additions, 3 deletionssrc/box/sql/build.c
- src/box/sql/expr.c 1 addition, 0 deletionssrc/box/sql/expr.c
- src/box/sql/select.c 2 additions, 0 deletionssrc/box/sql/select.c
- src/box/sql/sqlInt.h 8 additions, 4 deletionssrc/box/sql/sqlInt.h
- src/box/sql/trigger.c 5 additions, 0 deletionssrc/box/sql/trigger.c
- test/sql-luatest/gh_4467_sql_id_backwards_compatibility_test.lua 196 additions, 0 deletions...l-luatest/gh_4467_sql_id_backwards_compatibility_test.lua
Loading
Please register or sign in to comment