postgresql-odbc/postgresql-odbc-09.05.0400-revert-money-testsuite-fix.patch
Petr Kubat d74ec44578 Revert upstream fix related to MONEY issue and the accompanying testsuite
upstream commits d5374bcc4d and eb480e19ee
2016-08-29 11:47:49 +02:00

50 lines
2.2 KiB
Diff

Revert "Fix regression test failures in param-convesrions-test."
As we have applied a downstream patch for reverting the money type patch,
we need to also revert upstream test cases that are not supposed to be passing
in the first place.
This reverts commit eb480e19ee71b19de7f61013bdb4d5abd1cd98e4.
Related discussion:
http://www.postgresql.org/message-id/3259874.lgiBp3an9Y@nb.usersys.redhat.com
---
diff --git a/test/expected/param-conversions.out b/test/expected/param-conversions.out
index 449a398..777cc94 100644
--- a/test/expected/param-conversions.out
+++ b/test/expected/param-conversions.out
@@ -72,12 +72,12 @@ Error while executing the query
Testing "SELECT 1.3 > ?" with SQL_C_CHAR -> SQL_FLOAT param "3', 'injected, BAD!', '1"...
SQLExecDirect failed
+22P02=ERROR: invalid input syntax for type double precision: "3', 'injected, BAD!', '1";
-22P02=ERROR: invalid input syntax for type numeric: "3', 'injected, BAD!', '1";
Error while executing the query
Testing "SELECT 1.4 > ?" with SQL_C_CHAR -> SQL_FLOAT param "4 \'bad', '1"...
SQLExecDirect failed
+22P02=ERROR: invalid input syntax for type double precision: "4 \'bad', '1";
-22P02=ERROR: invalid input syntax for type numeric: "4 \'bad', '1";
Error while executing the query
Testing "SELECT 1-?" with SQL_C_CHAR -> SQL_INTEGER param "-1"...
diff --git a/test/expected/param-conversions_1.out b/test/expected/param-conversions_1.out
index 8c8e003..20f97b5 100644
--- a/test/expected/param-conversions_1.out
+++ b/test/expected/param-conversions_1.out
@@ -71,12 +71,12 @@ Error while executing the query
Testing "SELECT 1.3 > ?" with SQL_C_CHAR -> SQL_FLOAT param "3', 'injected, BAD!', '1"...
SQLExecDirect failed
+22P02=ERROR: invalid input syntax for type double precision: "3', 'injected, BAD!', '1";
-22P02=ERROR: invalid input syntax for type numeric "3', 'injected, BAD!', '1";
Error while executing the query
Testing "SELECT 1.4 > ?" with SQL_C_CHAR -> SQL_FLOAT param "4 \'bad', '1"...
SQLExecDirect failed
+22P02=ERROR: invalid input syntax for type double precision: "4 \'bad', '1";
-22P02=ERROR: invalid input syntax for type numeric: "4 \'bad', '1";
Error while executing the query
Testing "SELECT 1-?" with SQL_C_CHAR -> SQL_INTEGER param "-1"...