From 92990039ac23f5344b0f356ad7489ed85fbc6956 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Tue, 19 Apr 2016 17:48:54 +0200 Subject: [PATCH] Test on joins To hit on the issue just fixed. --- test/people_fjoin_personroom.query | 1 + test/people_fjoin_personroom.result | 9 +++++++++ test/people_join_personroom.query | 1 + test/people_join_personroom.result | 9 +++++++++ test/people_join_rooms.query | 1 + test/people_join_rooms.result | 13 +++++++++++++ test/select_people_join_rooms.query | 1 + test/select_people_join_rooms.result | 5 +++++ 8 files changed, 40 insertions(+) create mode 100644 test/people_fjoin_personroom.query create mode 100644 test/people_fjoin_personroom.result create mode 100644 test/people_join_personroom.query create mode 100644 test/people_join_personroom.result create mode 100644 test/people_join_rooms.query create mode 100644 test/people_join_rooms.result create mode 100644 test/select_people_join_rooms.query create mode 100644 test/select_people_join_rooms.result diff --git a/test/people_fjoin_personroom.query b/test/people_fjoin_personroom.query new file mode 100644 index 0000000..f2fada2 --- /dev/null +++ b/test/people_fjoin_personroom.query @@ -0,0 +1 @@ +people⧓person_room diff --git a/test/people_fjoin_personroom.result b/test/people_fjoin_personroom.result new file mode 100644 index 0000000..2501391 --- /dev/null +++ b/test/people_fjoin_personroom.result @@ -0,0 +1,9 @@ +id,name,chief,age,room +0,jack,0,22,1 +1,carl,0,20,4 +2,john,1,30,2 +3,dean,1,33,2 +4,eve,0,25,5 +5,duncan,4,30,1 +6,paul,4,30,5 +7,alia,1,28,1 diff --git a/test/people_join_personroom.query b/test/people_join_personroom.query new file mode 100644 index 0000000..4c43b19 --- /dev/null +++ b/test/people_join_personroom.query @@ -0,0 +1 @@ +people⋈person_room diff --git a/test/people_join_personroom.result b/test/people_join_personroom.result new file mode 100644 index 0000000..2501391 --- /dev/null +++ b/test/people_join_personroom.result @@ -0,0 +1,9 @@ +id,name,chief,age,room +0,jack,0,22,1 +1,carl,0,20,4 +2,john,1,30,2 +3,dean,1,33,2 +4,eve,0,25,5 +5,duncan,4,30,1 +6,paul,4,30,5 +7,alia,1,28,1 diff --git a/test/people_join_rooms.query b/test/people_join_rooms.query new file mode 100644 index 0000000..41492ae --- /dev/null +++ b/test/people_join_rooms.query @@ -0,0 +1 @@ +people⧓person_room ⧓ rooms diff --git a/test/people_join_rooms.result b/test/people_join_rooms.result new file mode 100644 index 0000000..108efc3 --- /dev/null +++ b/test/people_join_rooms.result @@ -0,0 +1,13 @@ +id,name,chief,age,room,phone +0,jack,0,22,1,1516 +1,carl,0,20,4,1041 +2,john,1,30,2,1617 +3,dean,1,33,2,1617 +4,eve,0,25,5,9212 +5,duncan,4,30,1,1516 +6,paul,4,30,5,9212 +7,alia,1,28,1,1516 +---,---,---,---,"0","1515" +---,---,---,---,"3","1601" +---,---,---,---,"6","1424" +---,---,---,---,"7","1294" diff --git a/test/select_people_join_rooms.query b/test/select_people_join_rooms.query new file mode 100644 index 0000000..2336072 --- /dev/null +++ b/test/select_people_join_rooms.query @@ -0,0 +1 @@ +σid=='---' (people⧓person_room ⧓ rooms) diff --git a/test/select_people_join_rooms.result b/test/select_people_join_rooms.result new file mode 100644 index 0000000..82eb158 --- /dev/null +++ b/test/select_people_join_rooms.result @@ -0,0 +1,5 @@ +id,name,chief,age,room,phone +---,---,---,---,"0","1515" +---,---,---,---,"3","1601" +---,---,---,---,"6","1424" +---,---,---,---,"7","1294"