Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d6b1f2

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 parent1226816 commit2d6b1f2

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 ( tdatetime );
8+
create table tstmp ( ttimestamp 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 inttmpfrom'data/test_btree.data'
1212

13-
createtabletstmp ( tdatetime );
13+
createtabletstmp ( ttimestamp without time zone );
1414

1515
\copy tstmpfrom'data/test_btree_ts.data'
1616

1717
-- without idx
1818

1919
selectcount(*)from inttmpwhere b<=10;
2020

21-
selectcount(*)from tstmpwhere t<'2001-05-29 08:33:09+04';
21+
selectcount(*)from tstmpwhere t<'2001-05-29 08:33:09';
2222

2323
-- create idx
2424

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

3333
selectcount(*)from inttmpwhere b<=10;
3434

35-
selectcount(*)from tstmpwhere t<'2001-05-29 08:33:09+04';
35+
selectcount(*)from tstmpwhere t<'2001-05-29 08:33:09';
3636

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp