Commit f0aac10
committed
Fix database-qualified dictionary names in DETACH/ATTACH statements
The parser was not handling database-qualified dictionary names like
`db.dict` in DETACH DICTIONARY and ATTACH DICTIONARY statements.
Parser changes:
- parseDetach: Allow qualified names for DICTIONARY (database.dict)
- parseAttach: Allow qualified names for DICTIONARY (database.dict)
Explain changes:
- explainDetachQuery: Handle Database + Dictionary case
- explainAttachQuery: Handle Database + Dictionary case
Fixes tests:
- 01110_dictionary_layout_without_arguments (stmt7, stmt8)
- 01575_disable_detach_table_of_dictionary (stmt7, stmt9)
- 01018_ddl_dictionaries_create (stmt17, stmt22)1 parent e61ed87 commit f0aac10
5 files changed
Lines changed: 34 additions & 27 deletions
File tree
- internal/explain
- parser
- testdata
- 01018_ddl_dictionaries_create
- 01110_dictionary_layout_without_arguments
- 01575_disable_detach_table_of_dictionary
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1255 | 1255 | | |
1256 | 1256 | | |
1257 | 1257 | | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
1258 | 1266 | | |
1259 | | - | |
| 1267 | + | |
1260 | 1268 | | |
1261 | 1269 | | |
1262 | 1270 | | |
| |||
1280 | 1288 | | |
1281 | 1289 | | |
1282 | 1290 | | |
1283 | | - | |
| 1291 | + | |
1284 | 1292 | | |
1285 | 1293 | | |
1286 | 1294 | | |
| |||
1301 | 1309 | | |
1302 | 1310 | | |
1303 | 1311 | | |
1304 | | - | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
1305 | 1319 | | |
1306 | 1320 | | |
1307 | 1321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6990 | 6990 | | |
6991 | 6991 | | |
6992 | 6992 | | |
6993 | | - | |
| 6993 | + | |
6994 | 6994 | | |
6995 | | - | |
| 6995 | + | |
6996 | 6996 | | |
6997 | 6997 | | |
6998 | | - | |
| 6998 | + | |
| 6999 | + | |
| 7000 | + | |
| 7001 | + | |
| 7002 | + | |
6999 | 7003 | | |
7000 | 7004 | | |
7001 | 7005 | | |
| |||
7047 | 7051 | | |
7048 | 7052 | | |
7049 | 7053 | | |
7050 | | - | |
| 7054 | + | |
7051 | 7055 | | |
7052 | | - | |
| 7056 | + | |
7053 | 7057 | | |
7054 | 7058 | | |
7055 | | - | |
| 7059 | + | |
| 7060 | + | |
| 7061 | + | |
| 7062 | + | |
| 7063 | + | |
7056 | 7064 | | |
7057 | 7065 | | |
7058 | 7066 | | |
| |||
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
0 commit comments