Commit 2ac4d83
committed
fix: quote table names in PRAGMA query and handle empty default values correctly
Two issues prevented INSERT validation from working:
1. PRAGMA table_info() requires quoted table names to find tables reliably
2. SQLite returns empty strings for columns without defaults, which were being
treated as 'has a default value', causing all columns to pass validation
Fixes all 9 INSERT validation tests.1 parent 793db30 commit 2ac4d83
2 files changed
Lines changed: 25 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
157 | 164 | | |
158 | 165 | | |
159 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | | - | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
1119 | 1122 | | |
1120 | 1123 | | |
1121 | 1124 | | |
| |||
1170 | 1173 | | |
1171 | 1174 | | |
1172 | 1175 | | |
1173 | | - | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
1174 | 1179 | | |
1175 | 1180 | | |
1176 | 1181 | | |
| |||
1227 | 1232 | | |
1228 | 1233 | | |
1229 | 1234 | | |
1230 | | - | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1231 | 1239 | | |
1232 | 1240 | | |
1233 | 1241 | | |
| |||
1255 | 1263 | | |
1256 | 1264 | | |
1257 | 1265 | | |
1258 | | - | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
1259 | 1270 | | |
1260 | 1271 | | |
1261 | 1272 | | |
| |||
0 commit comments