Commit 359266f
authored
Feat: Add @default_catalog to the macro environment (#1988)
* fix: qualify tables with default catalog in command nodes
Command nodes like AlterTable are not operated in the scope operations in the sqlglot qualify tables op, nor should the necessariy be. But we want to do it here to give the renderer as much information as possible and to make post statements and pre statements more correct.
* fix: pass default catalog to the render kwargs
* fix: set default catalog in seemingly correct place1 parent 91005ab commit 359266f
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
0 commit comments