Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit baa3dee

Browse files
committed
Adding regress test on person
1 parent 40933b8 commit baa3dee

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

test/expected/020_person_queries.out

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
SELECT * FROM person LIMIT 10;
2+
id | name | born
3+
----+--------------------+------
4+
1 | Keanu Reeves | 1964
5+
2 | Carrie-Anne Moss | 1967
6+
3 | Laurence Fishburne | 1961
7+
4 | Hugo Weaving | 1960
8+
5 | Lilly Wachowski | 1967
9+
6 | Lana Wachowski | 1965
10+
7 | Joel Silver | 1952
11+
8 | Emil Eifrem | 1978
12+
12 | Charlize Theron | 1975
13+
13 | Al Pacino | 1940
14+
(10 rows)
15+
16+
SELECT * FROM person p WHERE p.born > 1980 ORDER BY p.born DESC LIMIT 10;
17+
id | name | born
18+
-----+-------------------+------
19+
44 | Jonathan Lipnicki | 1996
20+
122 | Emile Hirsch | 1985
21+
127 | Rain | 1982
22+
117 | Natalie Portman | 1981
23+
(4 rows)
24+
25+
SELECT * FROM person p WHERE p.name = 'Keanu Reeves';
26+
id | name | born
27+
----+--------------+------
28+
1 | Keanu Reeves | 1964
29+
(1 row)
30+
31+
SELECT * FROM person p WHERE p.name LIKE '%Keanu%';
32+
id | name | born
33+
----+--------------+------
34+
1 | Keanu Reeves | 1964
35+
(1 row)
36+
37+
SELECT * FROM person p WHERE p.name ILIKE '%keanu%';
38+
id | name | born
39+
----+--------------+------
40+
1 | Keanu Reeves | 1964
41+
(1 row)
42+

test/sql/020_person_queries.sql

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SELECT * FROM person LIMIT 10;
2+
SELECT * FROM person p WHERE p.born > 1980 ORDER BY p.born DESC LIMIT 10;
3+
SELECT * FROM person p WHERE p.name = 'Keanu Reeves';
4+
SELECT * FROM person p WHERE p.name LIKE '%Keanu%';
5+
SELECT * FROM person p WHERE p.name ILIKE '%keanu%';

0 commit comments

Comments
 (0)