Repository navigation
Commit dd0e1c7
committed
Pass REGEXP operands to the functions as text
PDO narrows integer arguments of user-defined functions to 32 bits
before PHP receives them. On a BIGINT column holding 15551234567,
n REGEXP '^1' and REGEXP_LIKE(n, '^1') returned 0.
PHP can't recover the value, so cast the subject and the pattern to
text in the translator.
SQLite now converts float operands to text instead of PHP. A whole number
in a DOUBLE or FLOAT column reads as "20.0", where MySQL reads "20".1 parent 68ce21d commit dd0e1c7
2 files changed
Lines changed: 62 additions & 1 deletion
File tree
- packages/mysql-on-sqlite
- src/sqlite
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5177 | 5177 | | |
5178 | 5178 | | |
5179 | 5179 | | |
| 5180 | + | |
| 5181 | + | |
5180 | 5182 | | |
5181 | | - | |
| 5183 | + | |
5182 | 5184 | | |
5183 | 5185 | | |
5184 | 5186 | | |
| |||
5393 | 5395 | | |
5394 | 5396 | | |
5395 | 5397 | | |
| 5398 | + | |
| 5399 | + | |
| 5400 | + | |
| 5401 | + | |
| 5402 | + | |
| 5403 | + | |
| 5404 | + | |
5396 | 5405 | | |
5397 | 5406 | | |
5398 | 5407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
533 | 585 | | |
534 | 586 | | |
535 | 587 | | |
| |||
0 commit comments