Skip to content

Commit fea1786

Browse files
committed
Fix tests
1 parent 7fad629 commit fea1786

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ dir='$(top_srcdir)/src/include'
2828
endif
2929

3030
# uncomment this if you need autogeneration
31-
#serialize.c deserialize.c: gen_parser.py nodes.h
32-
# python gen_parser.py nodes.h $(dir)
31+
serialize.c deserialize.c: gen_parser.py nodes.h
32+
python gen_parser.py nodes.h $(dir)

expected/sr_plan.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ SELECT * FROM test_table WHERE test_attr1 = 15;
5353
------------+------------
5454
(0 rows)
5555

56-
SELECT enable, valid, query FROM sr_plans;
56+
SELECT enable, valid, query FROM sr_plans ORDER BY query_hash;
5757
enable | valid | query
5858
--------+-------+-----------------------------------------------------
5959
t | t | SELECT * FROM test_table WHERE test_attr1 = _p(10);
6060
t | t | SELECT * FROM test_table WHERE test_attr1 = 10;
6161
(2 rows)
6262

6363
DROP TABLE test_table;
64-
SELECT enable, valid, query FROM sr_plans;
64+
SELECT enable, valid, query FROM sr_plans ORDER BY query_hash;
6565
enable | valid | query
6666
--------+-------+-----------------------------------------------------
6767
t | f | SELECT * FROM test_table WHERE test_attr1 = _p(10);

sql/sr_plan.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ SELECT * FROM test_table WHERE test_attr1 = _p(15);
1818
SELECT * FROM test_table WHERE test_attr1 = 10;
1919
SELECT * FROM test_table WHERE test_attr1 = 15;
2020

21-
SELECT enable, valid, query FROM sr_plans;
21+
SELECT enable, valid, query FROM sr_plans ORDER BY query_hash;
2222
DROP TABLE test_table;
23-
SELECT enable, valid, query FROM sr_plans;
23+
SELECT enable, valid, query FROM sr_plans ORDER BY query_hash;
2424

2525
CREATE TABLE test_table(test_attr1 int, test_attr2 int);
2626

0 commit comments

Comments
 (0)