Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Insert file attachments records in a single step
Commit 12a7f83 split the attachment of a BLOB in the bug_file and project_file tables in 2 steps, first inserting the record, then updating it to add the BLOB's content. This introduced a regression with MySQL when SQL_MODE is set to STRICT_ALL_TABLES and the database was created pre 1.3.x and subsequently upgraded. In 1.2, BLOB columns are created with a NOT NULL attribute, due to custom ADOdb code (see 19dbfb0) This reverts the behavior to what it was before 12a7f83, i.e. execute a single INSERT statement that also populates the BLOB (except with Oracle which requires this to occur as a separate operation). Fixes #20547
- Loading branch information
Showing
2 changed files
with
51 additions
and
26 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