Skip to content

Fix bulk string operations with Oracle#1361

Merged
vadz merged 4 commits into
SOCI:masterfrom
vadz:oracle-optional-bulk
Jul 2, 2026
Merged

Fix bulk string operations with Oracle#1361
vadz merged 4 commits into
SOCI:masterfrom
vadz:oracle-optional-bulk

Conversation

@vadz

@vadz vadz commented Jul 2, 2026

Copy link
Copy Markdown
Member

No description provided.

vadz added 4 commits July 2, 2026 19:51
Don't redeclare the same variables or do redeclare it but reduce the
scope of a previously declared variable with the same name to avoid
shadowing.

No real changes.

This commit is best viewed ignoring whitespace-only changes.
Use MSVS-specific localtime_s() instead when using this compiler.
This was broken by c35b1b6 (Avoid disabling MSVC CRT security warnings
globally, 2025-06-08) which implicitly replaced std::strncpy() calls in
Oracle vector use type backend with the calls to soci::strncpy() which
doesn't behave in the same way as the standard function, e.g. it can't
be used with n==0 and it always NUL-terminates the destination buffer.

Restore the original strncpy() behaviour to fix this.

See SOCI#1268.
@vadz
vadz merged commit dfba4e9 into SOCI:master Jul 2, 2026
26 checks passed
@vadz
vadz deleted the oracle-optional-bulk branch July 2, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant