Skip to content

Commit

Permalink
Fix regression test output for PostgreSQL 12
Browse files Browse the repository at this point in the history
PG12 uses precise floating point output by default. Setting
extra_float_digits to 0 makes it use the old format.
  • Loading branch information
df7cb committed Jun 3, 2019
1 parent df1669e commit 3c4fe28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions expected/prefix.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
set client_min_messages = warning;
/* reset e_f_d to 0 in PG12+ */
set extra_float_digits = 0;
create table prefixes (
prefix text primary key,
name text not null,
Expand Down
2 changes: 2 additions & 0 deletions sql/prefix.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
set client_min_messages = warning;
/* reset e_f_d to 0 in PG12+ */
set extra_float_digits = 0;

create table prefixes (
prefix text primary key,
Expand Down

0 comments on commit 3c4fe28

Please sign in to comment.