Debian Patches

Status for psqlodbc/1:17.00.0004-2

Patch Description Author Forwarded Bugs Origin Last update
reproducible no
c53c8f2212b8cf746289a4712596aa488ceb91b6 commit c53c8f2212b8cf746289a4712596aa488ceb91b6

Fix GetDescRec on big-endian architectures (#130)

IRDGetField is treating its arguments as SQLINTEGER, but we were passing
SQLSMALLINT to it.

Fixes the 2nd half of #51.

diff --git a/pgapi30.c b/pgapi30.c
index 8f061d0..ca437c9 100644
Christoph Berg <myon@debian.org> no 2025-06-16
453a8bdcaafde9fcd108a195ffea3ccb5c4d0a21 commit 453a8bdcaafde9fcd108a195ffea3ccb5c4d0a21

Add expected output file for descrec test in C locale (#131)

When running with LC_ALL=C, SQL_DESC_OCTET_LENGTH matches the character
length. Add "10" as accepted value.

The net diff to the existing descrec.out file is this:

# --- test/expected/descrec.out 2025-06-13 19:02:36.460302799 +0200
# +++ test/expected/descrec_2.out 2025-06-16 14:34:44.270543393 +0200
@@ -19,7 +19,7 @@
-- Column 3 --
SQL_DESC_NAME: col3
SQL_DESC_TYPE: 12
-SQL_DESC_OCTET_LENGTH: 40
+SQL_DESC_OCTET_LENGTH: 10
SQL_DESC_PRECISION: 0
SQL_DESC_SCALE: 0
SQL_DESC_NULLABLE: 0

Fixes #51.

diff --git a/test/expected/descrec_2.out b/test/expected/descrec_2.out
new file mode 100644
index 0000000..6f61c49
Christoph Berg <myon@debian.org> no 2025-06-16

All known versions for source package 'psqlodbc'

Links