Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2d6b1f2

Browse files
committed
Update incorrect expected file. Use 'timestamp without time zone'
datatype in test, to try to avoid any dependency on local time zone.
1 parent 1226816 commit 2d6b1f2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

contrib/btree_gist/expected/btree_gist.out

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
\set ECHO none
66
create table inttmp (b int4);
77
\copy inttmp from 'data/test_btree.data'
8-
create table tstmp ( t datetime );
8+
create table tstmp ( t timestamp without time zone );
99
\copy tstmp from 'data/test_btree_ts.data'
1010
-- without idx
1111
select count(*) from inttmp where b <=10;
@@ -14,10 +14,10 @@ select count(*) from inttmp where b <=10;
1414
11
1515
(1 row)
1616

17-
select count(*) from tstmp where t < '2001-05-29 08:33:09+04';
17+
select count(*) from tstmp where t < '2001-05-29 08:33:09';
1818
count
1919
-------
20-
7
20+
66
2121
(1 row)
2222

2323
-- create idx
@@ -31,9 +31,9 @@ select count(*) from inttmp where b <=10;
3131
11
3232
(1 row)
3333

34-
select count(*) from tstmp where t < '2001-05-29 08:33:09+04';
34+
select count(*) from tstmp where t < '2001-05-29 08:33:09';
3535
count
3636
-------
37-
7
37+
66
3838
(1 row)
3939

contrib/btree_gist/sql/btree_gist.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ create table inttmp (b int4);
1010

1111
\copy inttmp from 'data/test_btree.data'
1212

13-
create table tstmp ( t datetime );
13+
create table tstmp ( t timestamp without time zone );
1414

1515
\copy tstmp from 'data/test_btree_ts.data'
1616

1717
-- without idx
1818

1919
select count(*) from inttmp where b <=10;
2020

21-
select count(*) from tstmp where t < '2001-05-29 08:33:09+04';
21+
select count(*) from tstmp where t < '2001-05-29 08:33:09';
2222

2323
-- create idx
2424

@@ -32,5 +32,5 @@ set enable_seqscan=off;
3232

3333
select count(*) from inttmp where b <=10;
3434

35-
select count(*) from tstmp where t < '2001-05-29 08:33:09+04';
35+
select count(*) from tstmp where t < '2001-05-29 08:33:09';
3636

0 commit comments

Comments
 (0)