Update the expected result of odbc-escapes regression test for PG12's new floating...
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Sun, 5 Jan 2020 01:29:49 +0000 (10:29 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Sun, 5 Jan 2020 01:29:49 +0000 (10:29 +0900)
Old odbc-escapes.out was renamed odbc-escapes_1.out.

test/expected/odbc-escapes.out
test/expected/odbc-escapes_1.out [new file with mode: 0644]

index 0452adc04737b1777ffaa2e83d0d3c6b13dadfad..64fd927af9ccccc017a39e43d3e353af365b12ca 100644 (file)
@@ -68,8 +68,8 @@ Param 3 is an I-O parameter
 Param 4: 3.4
 Param 5 is an OUT parameter
 Result set:
-6.7999999999999998 7   2017-02-24 11:34:46
-OUT params: 6.7999999999999998 : 7 : 2017-02-24 11:34:46
+6.8    7   2017-02-24 11:34:46
+OUT params: 6.8 : 7 : 2017-02-24 11:34:46
 
 -- TEST using SQLExecDirect
 
@@ -139,6 +139,6 @@ Param 3 is an I-O parameter
 Param 4: 3.4
 Param 5 is an OUT parameter
 Result set:
-6.7999999999999998 7   2017-02-24 11:34:46
-OUT params: 6.7999999999999998 : 7 : 2017-02-24 11:34:46
+6.8    7   2017-02-24 11:34:46
+OUT params: 6.8 : 7 : 2017-02-24 11:34:46
 disconnecting
diff --git a/test/expected/odbc-escapes_1.out b/test/expected/odbc-escapes_1.out
new file mode 100644 (file)
index 0000000..0452adc
--- /dev/null
@@ -0,0 +1,144 @@
+connected
+
+-- TEST using SQLExecute after SQLPrepare
+
+Query: SELECT {fn CONCAT(?, ?) }
+Param 1: foo
+Param 2: bar
+Result set:
+foobar
+
+Query: SELECT {fn LOCATE(?, ?, 2) }
+Param 1: needle
+Param 2: this is a needle in an ol' haystack
+Result set:
+11
+
+Query: SELECT {fn LOCATE({fn SUBSTRING(?, 2, 4)}, {fn SUBSTRING(?, 3)}, 3) }
+Param 1: needle
+Param 2: this is a needle in an ol' haystack
+Result set:
+10
+
+Query: SELECT 'x' || {fn SPACE(10) } || 'x'
+Result set:
+x          x
+
+Query: { call length(?) }
+Param 1: foobar
+Result set:
+6
+
+Query: { call right(?, ?) }
+Param 1: foobar
+Param 2: 3
+Result set:
+bar
+
+Query: { ? = call length('foo') }
+Param 1 is an OUT parameter
+Result set:
+
+OUT param: 3
+
+Query: { ? = call concat(?::text, ?::text) }
+Param 1 is an OUT parameter
+Param 2: foo
+Param 3: bar
+Result set:
+
+OUT param: foobar
+
+Query: SELECT {d '2014-12-21' } + '1 day'::interval
+Result set:
+2014-12-22 00:00:00
+
+Query: SELECT {t '20:30:40' } + '1 hour 1 minute 1 second'::interval
+Result set:
+21:31:41
+
+Query: SELECT {ts '2014-12-21 20:30:40' } + '1 day 1 hour 1 minute 1 second'::interval
+Result set:
+2014-12-22 21:31:41
+
+Query: {call a_b_c_d_e(?, ?, ?, ?, ?)}
+Param 1 is an OUT parameter
+Param 2: 2017-02-23 11:34:46
+Param 3 is an I-O parameter
+Param 4: 3.4
+Param 5 is an OUT parameter
+Result set:
+6.7999999999999998 7   2017-02-24 11:34:46
+OUT params: 6.7999999999999998 : 7 : 2017-02-24 11:34:46
+
+-- TEST using SQLExecDirect
+
+Query: SELECT {fn CONCAT(?, ?) }
+Param 1: foo
+Param 2: bar
+Result set:
+foobar
+
+Query: SELECT {fn LOCATE(?, ?, 2) }
+Param 1: needle
+Param 2: this is a needle in an ol' haystack
+Result set:
+11
+
+Query: SELECT {fn LOCATE({fn SUBSTRING(?, 2, 4)}, {fn SUBSTRING(?, 3)}, 3) }
+Param 1: needle
+Param 2: this is a needle in an ol' haystack
+Result set:
+10
+
+Query: SELECT 'x' || {fn SPACE(10) } || 'x'
+Result set:
+x          x
+
+Query: { call length(?) }
+Param 1: foobar
+Result set:
+6
+
+Query: { call right(?, ?) }
+Param 1: foobar
+Param 2: 3
+Result set:
+bar
+
+Query: { ? = call length('foo') }
+Param 1 is an OUT parameter
+Result set:
+
+OUT param: 3
+
+Query: { ? = call concat(?::text, ?::text) }
+Param 1 is an OUT parameter
+Param 2: foo
+Param 3: bar
+Result set:
+
+OUT param: foobar
+
+Query: SELECT {d '2014-12-21' } + '1 day'::interval
+Result set:
+2014-12-22 00:00:00
+
+Query: SELECT {t '20:30:40' } + '1 hour 1 minute 1 second'::interval
+Result set:
+21:31:41
+
+Query: SELECT {ts '2014-12-21 20:30:40' } + '1 day 1 hour 1 minute 1 second'::interval
+Result set:
+2014-12-22 21:31:41
+
+Query: {call a_b_c_d_e(?, ?, ?, ?, ?)}
+Param 1 is an OUT parameter
+Param 2: 2017-02-23 11:34:46
+Param 3 is an I-O parameter
+Param 4: 3.4
+Param 5 is an OUT parameter
+Result set:
+6.7999999999999998 7   2017-02-24 11:34:46
+OUT params: 6.7999999999999998 : 7 : 2017-02-24 11:34:46
+disconnecting