Commit 1b306a2
committed
Translate CAST AS BINARY via COLLATE BINARY
Replace 'CAST(x AS BLOB)' with 'CAST(x AS TEXT) COLLATE BINARY' for
MySQL BINARY cast targets (both CAST(...) and CONVERT(...) forms). The
previous BLOB form caused TEXT-vs-BLOB equality to always return FALSE
due to SQLite's storage-class ordering.
Refs #31.1 parent f53ebed commit 1b306a2
2 files changed
Lines changed: 44 additions & 4 deletions
File tree
- packages/mysql-on-sqlite
- src/sqlite
- tests
Lines changed: 31 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4287 | 4287 | | |
4288 | 4288 | | |
4289 | 4289 | | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
4290 | 4297 | | |
4291 | 4298 | | |
4292 | 4299 | | |
| |||
4295 | 4302 | | |
4296 | 4303 | | |
4297 | 4304 | | |
4298 | | - | |
| 4305 | + | |
4299 | 4306 | | |
4300 | 4307 | | |
4301 | 4308 | | |
4302 | 4309 | | |
4303 | 4310 | | |
4304 | | - | |
| 4311 | + | |
4305 | 4312 | | |
4306 | 4313 | | |
4307 | 4314 | | |
4308 | | - | |
| 4315 | + | |
4309 | 4316 | | |
4310 | 4317 | | |
4311 | 4318 | | |
4312 | 4319 | | |
4313 | 4320 | | |
4314 | 4321 | | |
| 4322 | + | |
| 4323 | + | |
| 4324 | + | |
| 4325 | + | |
| 4326 | + | |
| 4327 | + | |
| 4328 | + | |
| 4329 | + | |
| 4330 | + | |
| 4331 | + | |
| 4332 | + | |
| 4333 | + | |
| 4334 | + | |
| 4335 | + | |
| 4336 | + | |
| 4337 | + | |
| 4338 | + | |
| 4339 | + | |
| 4340 | + | |
| 4341 | + | |
| 4342 | + | |
4315 | 4343 | | |
4316 | 4344 | | |
4317 | 4345 | | |
| |||
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
175 | 187 | | |
176 | 188 | | |
177 | 189 | | |
| |||
0 commit comments