Commit cd67d73
committed
fix(db2): override _truncate_table to append IMMEDIATE keyword
Db2 requires TRUNCATE TABLE <name> IMMEDIATE. The base class omits
the mandatory IMMEDIATE keyword, causing SQL0104N:
'unexpected token END-OF-STATEMENT, expected IMMEDIATE'
Pattern follows trino.py which also overrides _truncate_table with
a dialect-specific suffix for the same reason.1 parent 8de1f45 commit cd67d73
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
735 | 742 | | |
736 | 743 | | |
737 | 744 | | |
| |||
0 commit comments