Hardening: SQLSetDescRecW stored a freed buffer and the address
of a local variable as deferred bound data. It now stores the
application's pointers, as SQLSetDescRec does.
Hardening: SQLColumns returned uninitialized relkind and table
OID values when the table query returned no rows.
Hardening: convert_linefeeds could dereference a NULL pointer
in one build configuration.
Hardening: secure_sscanf limits an over-wide %Ns width,
msgtowstr checks for a zero buffer length, and the MSDTC
connect-string append is bounded.
Fix the placeholder cast being truncated from parameter 1000
on, which failed with 'type 'timestam' does not exist'.
Report the largest column size instead of SQL_NO_TOTAL (-4) as
COLUMN_SIZE for bytea in SQLGetTypeInfo, which broke bytea
parameters through MSDASQL.
Update to 18.00.0004:
Fix the result-conversions regression test on big-endian
systems.
Update to 18.00.0003:
Report SQLSTATE 22003 for out-of-range integer conversions
instead of silently returning the wrapped low bits.
Fix statement level rollback (Protocol=7.4-2) discarding the
whole transaction on a syntax error.
Do not wrap internal queries in a savepoint at
rollback-on-error level 0 (Protocol=7.4-0), which lost
transactions on servers without SAVEPOINT support.
Redact the database password (ODBC PWD and libpq pqopt
password) in debug logs.
Fix hang on COPY ... FROM STDIN / TO STDOUT: report it as
unsupported and keep the connection usable.
Fix 'infinity'/'-infinity' dates being silently returned as
today's date.
Document the connection string escaping rules.
Update to 18.00.0002:
Use a signed type for the error status.
Redact sensitive connection parameters in the driver logs.
Fix double free / heap corruption during SQLDisconnect
cleanup.
Clear PGresults from per-query rollback.
Validate UTF-16 surrogate pairs before combining them.
Pass SQLSetDescRec field values correctly.
Avoid reading before leading string literals.
Detach freed application descriptors from statements.
Reject invalid SQLPutData lengths.
Reject overlong cursor names.
Fix version reporting.
Handle ARD bookmark allocation failure.
Validate percent escapes before decoding connection string
values.
Avoid reading past the end of conn_settings.
Fix stack buffer overflow in getPrecisionPart().
Fix SQLPrimaryKeys to exclude INCLUDE columns from the result.
Update to 18.00.0000, 18.00.0001 and 17.00.0010:
No code changes from 17.00.0009.
Update to 17.00.0009:
Fix the test suite for PostgreSQL 19, where
standard_conforming_strings is always on.
Upgrade the GitHub Actions workflow: use prebuilt PostgreSQL
binaries, parallel matrix builds and a separate release job.
Fix a bug of CC_send_query_append() when the
ignore_roundtrip_time flag is onRemove a mylog() call which is
a dupilicate of the preceding MYLOG() macro call.