summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs/psqlodbc/files/add-expected-output-file-for-descrec-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-dbs/psqlodbc/files/add-expected-output-file-for-descrec-test.patch')
-rw-r--r--meta-oe/recipes-dbs/psqlodbc/files/add-expected-output-file-for-descrec-test.patch72
1 files changed, 72 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/psqlodbc/files/add-expected-output-file-for-descrec-test.patch b/meta-oe/recipes-dbs/psqlodbc/files/add-expected-output-file-for-descrec-test.patch
new file mode 100644
index 0000000000..af25b207c8
--- /dev/null
+++ b/meta-oe/recipes-dbs/psqlodbc/files/add-expected-output-file-for-descrec-test.patch
@@ -0,0 +1,72 @@
1From 453a8bdcaafde9fcd108a195ffea3ccb5c4d0a21 Mon Sep 17 00:00:00 2001
2From: Christoph Berg <myon@debian.org>
3Date: Mon, 16 Jun 2025 20:25:26 +0200
4Subject: [PATCH] Add expected output file for descrec test in C locale (#131)
5
6When running with LC_ALL=C, SQL_DESC_OCTET_LENGTH matches the character
7length. Add "10" as accepted value.
8
9The net diff to the existing descrec.out file is this:
10
11 test/expected/descrec.out 2025-06-13 19:02:36.460302799 +0200
12 test/expected/descrec_2.out 2025-06-16 14:34:44.270543393 +0200
13 @@ -19,7 +19,7 @@
14 -- Column 3 --
15 SQL_DESC_NAME: col3
16 SQL_DESC_TYPE: 12
17 -SQL_DESC_OCTET_LENGTH: 40
18 +SQL_DESC_OCTET_LENGTH: 10
19 SQL_DESC_PRECISION: 0
20 SQL_DESC_SCALE: 0
21 SQL_DESC_NULLABLE: 0
22
23Fixes #51.
24
25Upstream-Status: Backport [https://github.com/postgresql-interfaces/psqlodbc/commit/453a8bdcaafde9fcd108a195ffea3ccb5c4d0a21]
26Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
27
28---
29 test/expected/descrec_2.out | 34 ++++++++++++++++++++++++++++++++++
30 1 file changed, 34 insertions(+)
31 create mode 100644 test/expected/descrec_2.out
32
33diff --git a/test/expected/descrec_2.out b/test/expected/descrec_2.out
34new file mode 100644
35index 0000000..6f61c49
36--- /dev/null
37+++ b/test/expected/descrec_2.out
38@@ -0,0 +1,34 @@
39+connected
40+
41+-- Column 1 --
42+SQL_DESC_NAME: col1
43+SQL_DESC_TYPE: 4
44+SQL_DESC_OCTET_LENGTH: 0
45+SQL_DESC_PRECISION: 0
46+SQL_DESC_SCALE: 0
47+SQL_DESC_NULLABLE: 0
48+
49+-- Column 2 --
50+SQL_DESC_NAME: col2
51+SQL_DESC_TYPE: 2
52+SQL_DESC_OCTET_LENGTH: 6
53+SQL_DESC_PRECISION: 4
54+SQL_DESC_SCALE: 2
55+SQL_DESC_NULLABLE: 1
56+
57+-- Column 3 --
58+SQL_DESC_NAME: col3
59+SQL_DESC_TYPE: 12
60+SQL_DESC_OCTET_LENGTH: 10
61+SQL_DESC_PRECISION: 0
62+SQL_DESC_SCALE: 0
63+SQL_DESC_NULLABLE: 0
64+
65+-- Column 4 --
66+SQL_DESC_NAME: col4
67+SQL_DESC_TYPE: -5
68+SQL_DESC_OCTET_LENGTH: 8
69+SQL_DESC_PRECISION: 0
70+SQL_DESC_SCALE: 0
71+SQL_DESC_NULLABLE: 0
72+disconnecting