Fix expected output for UseServerSidePrepare=0.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 5 Dec 2016 09:29:37 +0000 (11:29 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 5 Dec 2016 09:29:58 +0000 (11:29 +0200)
Commit eb480e19 changed this, but with UseServerSidePrepare=0, the old
expected output was correct. With UseServerSidePrepare=0, the driver sends
the value as a literal, without specifying a type. In that case, the server
deduces the type to be "double", even though the application used SQL_FLOAT
rather than SQL_DOUBLE.

This makes "make installcheck-all" pass on my laptop again.

test/expected/param-conversions_1.out

index 20f97b5d381bbe2f06f95878f66a99288e0faa24..8c8e0031cbaf6a55b48a56cba29a4ba978bedbf3 100644 (file)
@@ -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 numeric "3', 'injected, BAD!', '1";
+22P02=ERROR: invalid input syntax for type double precision: "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 numeric: "4 \'bad', '1";
+22P02=ERROR: invalid input syntax for type double precision: "4 \'bad', '1";
 Error while executing the query
 
 Testing "SELECT 1-?" with SQL_C_CHAR -> SQL_INTEGER param "-1"...