Repository navigation
Commit 5228110
bugfix: table alias failed for update & delete if SQLA's quote_char was set.
Prior to version 1.44 of SQL::Abstract::More, specifying a table alias
as "$table_name|$table_alias" was supported only for select, not for
delete or update.
DBIx::Lite worked around this by calling SQLA::M's table_alias method,
which returns a string of
"$table_name as $table_alias"
If SQLA's quote_char option is set, this entire construct is quoted,
rather than just $table_name, leading to illegal SQL.
This commit will use the "$name|$alias" form if SQLA::M is version 1.44 or higher.1 parent 1bf2cd1 commit 5228110
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
464 | 465 | | |
465 | 466 | | |
466 | 467 | | |
467 | | - | |
468 | | - | |
| 468 | + | |
| 469 | + | |
469 | 470 | | |
470 | 471 | | |
471 | 472 | | |
| |||
646 | 647 | | |
647 | 648 | | |
648 | 649 | | |
| 650 | + | |
649 | 651 | | |
650 | 652 | | |
651 | 653 | | |
652 | 654 | | |
653 | | - | |
654 | | - | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
655 | 666 | | |
| 667 | + | |
656 | 668 | | |
657 | 669 | | |
658 | 670 | | |
| |||
0 commit comments