summaryrefslogtreecommitdiff
path: root/lib/odbc
diff options
context:
space:
mode:
authorErlang/OTP <otp@erlang.org>2021-01-12 18:01:45 +0100
committerErlang/OTP <otp@erlang.org>2021-01-12 18:01:45 +0100
commit9f2b28a5d47608b09239cb21cebbafd3167d90e6 (patch)
tree5d95fae22f48767f81d37d8fe9d9bb9e1f27b387 /lib/odbc
parent0d84d8a4e55c67cfc9698119e4c0f367d5b2b2e4 (diff)
parentc8d82f01d81e9db0e36db0a80d633546990015a6 (diff)
downloaderlang-9f2b28a5d47608b09239cb21cebbafd3167d90e6.tar.gz
Merge branch 'lukas/odbc/fix-psql-testcases' into maint-22
* lukas/odbc/fix-psql-testcases: odbc: Update tests to work with psql 10+
Diffstat (limited to 'lib/odbc')
-rw-r--r--lib/odbc/test/README2
-rw-r--r--lib/odbc/test/postgres.erl6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/odbc/test/README b/lib/odbc/test/README
index 0a8495afbb..5ae6073d9a 100644
--- a/lib/odbc/test/README
+++ b/lib/odbc/test/README
@@ -47,7 +47,7 @@ something like this:
--- Start example of .odbc.ini ----
-[Postgres]
+[PostgresLinux64Ubuntu]
Driver=/usr/lib/psqlodbc.so
Description=Postgres driver
ServerName=myhost
diff --git a/lib/odbc/test/postgres.erl b/lib/odbc/test/postgres.erl
index 1955358206..e055be9544 100644
--- a/lib/odbc/test/postgres.erl
+++ b/lib/odbc/test/postgres.erl
@@ -207,7 +207,7 @@ bit_true_selected() ->
%-------------------------------------------------------------------------
float_min() ->
- 1.79e-307.
+ 5.0e-324.
float_max() ->
1.79e+308.
@@ -215,7 +215,7 @@ create_float_table() ->
" (FIELD float)".
float_underflow() ->
- "1.80e-308".
+ "2.4e-324".
float_overflow() ->
"1.80e+308".
@@ -288,7 +288,7 @@ describe_string() ->
{"str4",{sql_varchar,10}}]}.
describe_floating() ->
- {ok,[{"f",sql_real},{"r",sql_real},{"d",{sql_float,15}}]}.
+ {ok,[{"f",sql_real},{"r",sql_real},{"d",{sql_float,17}}]}.
describe_dec_num() ->
{ok,[{"mydec",{sql_numeric,9,3}},{"mynum",{sql_numeric,9,2}}]}.