Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix binding of parameters of custom types in ODBC backend.
Call SQLBindParameter() from pre_use() which is guaranteed to be called when the input parameters have their correct, final values, notably after they were converted from custom type by conversion_use_type::convert_to_base(). This also fixes another serious problem for string types in the ODBC backend: setting a "use" parameter after define_and_bind() but before execute() doesn't result in buffer overflow any more. Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
- Loading branch information
Showing
3 changed files
with
64 additions
and
87 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