Commit 151e629
committed
Skip write_lobs callback when using prepared statements
When prepared_statements is enabled (the default), LOB data is already
written during INSERT via temporary LOB binding in type_cast(). The
write_lobs callback was redundantly writing the same data again via
SELECT FOR UPDATE.
This change skips the callback in the prepared statements path while
preserving it for the unprepared path, where empty_clob()/empty_blob()
literals require the callback to populate LOB data after INSERT.
Fixes the double-write issue identified in #2483.1 parent eb734d8 commit 151e629
1 file changed
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
0 commit comments