forked from jeremyevans/sequel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle usage of on_duplicate_key_update in MySQL prepared statements (F…
…ixes jeremyevans#404) This fixes a general class of bug where columns was called by the dataset literalization code when using prepared statements. The columns call would call the prepared statement literalization to recurse, usually leading to a SystemStackError or a NoMemoryError. The fix is fairly simple. Prepared statements now have a link to the dataset that created them, and calling columns on a prepared statement is now delegated to the dataset that prepared it.
- Loading branch information
1 parent
ffbb638
commit e6ae6a2
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters