diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2025-12-02 17:51:15 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-12-02 09:22:49 -0800 |
| commit | 967e5c9e0f358af97477da66f3f8547fa19764bb (patch) | |
| tree | 1354e89a1a0f7f9514cdf72cff2ba5359dbf1560 | |
| parent | cde1da5ec1cc7d5edfab7f65d95dfb9afff09682 (diff) | |
| download | meta-openembedded-967e5c9e0f358af97477da66f3f8547fa19764bb.tar.gz | |
psqlodbc: upgrade 17.00.0006 -> 17.00.0007
add-expected-output-file-for-descrec-test.patch
removed since it's included in 17.00.0007
psqlodbc-fix-for-ptest-support.patch
refreshed for 17.00.0007
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-dbs/psqlodbc/files/add-expected-output-file-for-descrec-test.patch | 72 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/psqlodbc/files/psqlodbc-fix-for-ptest-support.patch | 17 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/psqlodbc/psqlodbc_17.00.0007.bb (renamed from meta-oe/recipes-dbs/psqlodbc/psqlodbc_17.00.0006.bb) | 13 |
3 files changed, 17 insertions, 85 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 deleted file mode 100644 index af25b207c8..0000000000 --- a/meta-oe/recipes-dbs/psqlodbc/files/add-expected-output-file-for-descrec-test.patch +++ /dev/null | |||
| @@ -1,72 +0,0 @@ | |||
| 1 | From 453a8bdcaafde9fcd108a195ffea3ccb5c4d0a21 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Christoph Berg <myon@debian.org> | ||
| 3 | Date: Mon, 16 Jun 2025 20:25:26 +0200 | ||
| 4 | Subject: [PATCH] Add expected output file for descrec test in C locale (#131) | ||
| 5 | |||
| 6 | When running with LC_ALL=C, SQL_DESC_OCTET_LENGTH matches the character | ||
| 7 | length. Add "10" as accepted value. | ||
| 8 | |||
| 9 | The 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 | |||
| 23 | Fixes #51. | ||
| 24 | |||
| 25 | Upstream-Status: Backport [https://github.com/postgresql-interfaces/psqlodbc/commit/453a8bdcaafde9fcd108a195ffea3ccb5c4d0a21] | ||
| 26 | Signed-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 | |||
| 33 | diff --git a/test/expected/descrec_2.out b/test/expected/descrec_2.out | ||
| 34 | new file mode 100644 | ||
| 35 | index 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 | ||
diff --git a/meta-oe/recipes-dbs/psqlodbc/files/psqlodbc-fix-for-ptest-support.patch b/meta-oe/recipes-dbs/psqlodbc/files/psqlodbc-fix-for-ptest-support.patch index 081c6d0fd0..a1f60b2692 100644 --- a/meta-oe/recipes-dbs/psqlodbc/files/psqlodbc-fix-for-ptest-support.patch +++ b/meta-oe/recipes-dbs/psqlodbc/files/psqlodbc-fix-for-ptest-support.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 96896b88776d0080609ec830cf9538d2babe665a Mon Sep 17 00:00:00 2001 | 1 | From b0175d6124ae0460fbeaf34c964aff587fa978c2 Mon Sep 17 00:00:00 2001 |
| 2 | From: Jackie Huang <jackie.huang@windriver.com> | 2 | From: Jackie Huang <jackie.huang@windriver.com> |
| 3 | Date: Tue, 5 Sep 2017 10:24:10 +0800 | 3 | Date: Tue, 5 Sep 2017 10:24:10 +0800 |
| 4 | Subject: [PATCH] psqlodbc: fixes for ptest support | 4 | Subject: [PATCH] psqlodbc: fixes for ptest support |
| @@ -12,13 +12,14 @@ Subject: [PATCH] psqlodbc: fixes for ptest support | |||
| 12 | Upstream-Status: Inappropriate [OE ptest specific] | 12 | Upstream-Status: Inappropriate [OE ptest specific] |
| 13 | 13 | ||
| 14 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 14 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
| 15 | |||
| 16 | --- | 15 | --- |
| 17 | test/Makefile.in | 2 +- | 16 | test/Makefile.in | 2 +- |
| 18 | test/odbcini-gen.sh | 8 ++++---- | 17 | test/odbcini-gen.sh | 10 +++++----- |
| 19 | test/runsuite.c | 20 ++++++++++---------- | 18 | test/runsuite.c | 20 ++++++++++---------- |
| 20 | 3 files changed, 15 insertions(+), 15 deletions(-) | 19 | 3 files changed, 16 insertions(+), 16 deletions(-) |
| 21 | 20 | ||
| 21 | diff --git a/test/Makefile.in b/test/Makefile.in | ||
| 22 | index 3f9a9af..09406ae 100644 | ||
| 22 | --- a/test/Makefile.in | 23 | --- a/test/Makefile.in |
| 23 | +++ b/test/Makefile.in | 24 | +++ b/test/Makefile.in |
| 24 | @@ -19,7 +19,7 @@ CPPFLAGS = @CPPFLAGS@ -I.. # config.h | 25 | @@ -19,7 +19,7 @@ CPPFLAGS = @CPPFLAGS@ -I.. # config.h |
| @@ -30,6 +31,8 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
| 30 | 31 | ||
| 31 | all: $(TESTBINS) runsuite reset-db | 32 | all: $(TESTBINS) runsuite reset-db |
| 32 | 33 | ||
| 34 | diff --git a/test/odbcini-gen.sh b/test/odbcini-gen.sh | ||
| 35 | index 2eaba35..d7c03ba 100755 | ||
| 33 | --- a/test/odbcini-gen.sh | 36 | --- a/test/odbcini-gen.sh |
| 34 | +++ b/test/odbcini-gen.sh | 37 | +++ b/test/odbcini-gen.sh |
| 35 | @@ -6,7 +6,7 @@ | 38 | @@ -6,7 +6,7 @@ |
| @@ -64,6 +67,8 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
| 64 | ReadOnly = No | 67 | ReadOnly = No |
| 65 | RowVersioning = No | 68 | RowVersioning = No |
| 66 | ShowSystemTables = No | 69 | ShowSystemTables = No |
| 70 | diff --git a/test/runsuite.c b/test/runsuite.c | ||
| 71 | index 6ac3709..023ac1d 100644 | ||
| 67 | --- a/test/runsuite.c | 72 | --- a/test/runsuite.c |
| 68 | +++ b/test/runsuite.c | 73 | +++ b/test/runsuite.c |
| 69 | @@ -55,7 +55,7 @@ bailout(const char *fmt, ...) | 74 | @@ -55,7 +55,7 @@ bailout(const char *fmt, ...) |
| @@ -75,7 +80,7 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
| 75 | { | 80 | { |
| 76 | const char *basename; | 81 | const char *basename; |
| 77 | #ifdef WIN32 | 82 | #ifdef WIN32 |
| 78 | @@ -69,7 +69,7 @@ parse_argument(const char *in, char *tes | 83 | @@ -69,7 +69,7 @@ parse_argument(const char *in, char *testname, char *binname) |
| 79 | if (strchr(in, DIR_SEP) == NULL) | 84 | if (strchr(in, DIR_SEP) == NULL) |
| 80 | { | 85 | { |
| 81 | strcpy(testname, in); | 86 | strcpy(testname, in); |
| @@ -93,7 +98,7 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
| 93 | if (runtest(binname, testname, i, inputdir) != 0) | 98 | if (runtest(binname, testname, i, inputdir) != 0) |
| 94 | failures++; | 99 | failures++; |
| 95 | } | 100 | } |
| 96 | @@ -161,29 +161,29 @@ runtest(const char *binname, const char | 101 | @@ -161,29 +161,29 @@ runtest(const char *binname, const char *testname, int testno, const char *input |
| 97 | #ifndef WIN32 | 102 | #ifndef WIN32 |
| 98 | snprintf(cmdline, sizeof(cmdline), | 103 | snprintf(cmdline, sizeof(cmdline), |
| 99 | "ODBCSYSINI=. ODBCINSTINI=./odbcinst.ini ODBCINI=./odbc.ini " | 104 | "ODBCSYSINI=. ODBCINSTINI=./odbcinst.ini ODBCINI=./odbc.ini " |
diff --git a/meta-oe/recipes-dbs/psqlodbc/psqlodbc_17.00.0006.bb b/meta-oe/recipes-dbs/psqlodbc/psqlodbc_17.00.0007.bb index 183f810216..92ee2594f9 100644 --- a/meta-oe/recipes-dbs/psqlodbc/psqlodbc_17.00.0006.bb +++ b/meta-oe/recipes-dbs/psqlodbc/psqlodbc_17.00.0007.bb | |||
| @@ -20,14 +20,13 @@ LICENSE = "LGPL-2.0-only" | |||
| 20 | LIC_FILES_CHKSUM = "file://license.txt;md5=6db3822fc7512e83087ba798da013692" | 20 | LIC_FILES_CHKSUM = "file://license.txt;md5=6db3822fc7512e83087ba798da013692" |
| 21 | 21 | ||
| 22 | SRC_URI = "git://github.com/postgresql-interfaces/psqlodbc.git;protocol=https;branch=main;tag=REL-${PV_WITH_USCORE} \ | 22 | SRC_URI = "git://github.com/postgresql-interfaces/psqlodbc.git;protocol=https;branch=main;tag=REL-${PV_WITH_USCORE} \ |
| 23 | file://psqlodbc-remove-some-checks-for-cross-compiling.patch \ | 23 | file://psqlodbc-remove-some-checks-for-cross-compiling.patch \ |
| 24 | file://psqlodbc-donot-use-the-hardcode-libdir.patch \ | 24 | file://psqlodbc-donot-use-the-hardcode-libdir.patch \ |
| 25 | file://psqlodbc-fix-for-ptest-support.patch \ | 25 | file://psqlodbc-fix-for-ptest-support.patch \ |
| 26 | file://add-expected-output-file-for-descrec-test.patch \ | 26 | file://run-ptest \ |
| 27 | file://run-ptest \ | 27 | " |
| 28 | " | ||
| 29 | 28 | ||
| 30 | SRCREV = "251c8e8200c7a030fa46e59429d3fec7a73de4ec" | 29 | SRCREV = "8038cee43d6dff468320008ea928f3eaa1186726" |
| 31 | PV_WITH_USCORE = "${@d.getVar('PV').replace('.', '_')}" | 30 | PV_WITH_USCORE = "${@d.getVar('PV').replace('.', '_')}" |
| 32 | 31 | ||
| 33 | DEPENDS += "postgresql unixodbc" | 32 | DEPENDS += "postgresql unixodbc" |
