Commit bb3b943
committed
Unify column name representation in stored schema, support all representations when parsing
At the moment, CREATE TABLE statements normalize column names to use double quotes
and they are stored as such in sqlite_master and returned by get_sqlite_create_table().
However, the else branch of CHANGE COLUMN statements was using backticks instead,
which caused incorrect parsing for the next ALTER COLUMN statements now, when some
CHANGE statements without column definition are supported (SET/DROP DEFAULT).
This commit fixes both — 1) the name representation to use double quotes instead of backticks,
and 2) the parsing to support all column name representation (double quotes, backticks, nothing).1 parent 914f675 commit bb3b943
1 file changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3109 | 3109 | | |
3110 | 3110 | | |
3111 | 3111 | | |
3112 | | - | |
3113 | | - | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
3114 | 3127 | | |
3115 | 3128 | | |
3116 | 3129 | | |
| |||
3145 | 3158 | | |
3146 | 3159 | | |
3147 | 3160 | | |
3148 | | - | |
| 3161 | + | |
3149 | 3162 | | |
3150 | 3163 | | |
3151 | 3164 | | |
| |||
0 commit comments