Commit 2794059
mssql, ci: fix Database CI mssql-driver-tests job (#26850)
* mssql: add tcc linux include path flag for unixODBC headers (fixes #26816)
tcc does not search /usr/include by default, causing compilation failures
when building the mssql module on Linux with the bundled tcc after
unixodbc-dev is installed. Add `#flag linux -I/usr/include` under a
`$if tinyc` guard so tcc can locate sql.h and sqlext.h.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* mssql: avoid DROP TABLE IF EXISTS to prevent FreeTDS protocol state pollution
DROP TABLE IF EXISTS on a non-existent table causes SQL Server to send an
informational TDS token. FreeTDS may not drain this token before the
statement handle is freed, leaving the connection in a state where the next
SQLAllocHandle(STMT) returns a handle that immediately gives SQL_INVALID_HANDLE
on SQLExecDirect (no ODBC diagnostics). Replace with IF OBJECT_ID() IS NOT NULL
DROP TABLE, which only sends a done token and avoids the spurious info message.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* ci: skip GPG dearmor if microsoft-prod.gpg already exists on runner
Ubuntu 24.04 GitHub Actions runners ship with
/usr/share/keyrings/microsoft-prod.gpg pre-installed. The unconditional
`gpg --dearmor -o ...` fails with "File exists" because the file is
already present. Guard the step so it only runs when the file is absent.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Richard Wheeler <18647491+PythonWillRule@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ef3eae9 commit 2794059
3 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments