Commit 4d2e45a8 authored by Andrew McDonnell's avatar Andrew McDonnell

Update test harnesses.

parents f8f17f2a 54e60bcb
...@@ -46,7 +46,7 @@ NULL 12 10 1 NULL NULL ...@@ -46,7 +46,7 @@ NULL 12 10 1 NULL NULL
SELECT count(*) FROM graph; SELECT count(*) FROM graph;
count(*) count(*)
13 13
# Return all edges when latch is NULL # Return all edges when latch is NULL - this is different to latch='' and same as no where clause
SELECT * FROM graph where latch is NULL; SELECT * FROM graph where latch is NULL;
latch origid destid weight seq linkid latch origid destid weight seq linkid
NULL 1 2 1 NULL NULL NULL 1 2 1 NULL NULL
...@@ -76,6 +76,19 @@ latch origid destid weight seq linkid ...@@ -76,6 +76,19 @@ latch origid destid weight seq linkid
NULL NULL NULL NULL 10 NULL NULL NULL NULL 10
NULL NULL NULL NULL 11 NULL NULL NULL NULL 11
NULL NULL NULL NULL 12 NULL NULL NULL NULL 12
SELECT * FROM graph where latch='0';
latch origid destid weight seq linkid
0 NULL NULL NULL NULL 1
0 NULL NULL NULL NULL 2
0 NULL NULL NULL NULL 3
0 NULL NULL NULL NULL 4
0 NULL NULL NULL NULL 5
0 NULL NULL NULL NULL 6
0 NULL NULL NULL NULL 7
0 NULL NULL NULL NULL 9
0 NULL NULL NULL NULL 10
0 NULL NULL NULL NULL 11
0 NULL NULL NULL NULL 12
# Currently count should be 11 # Currently count should be 11
SELECT count(*) FROM graph where latch=''; SELECT count(*) FROM graph where latch='';
count(*) count(*)
......
...@@ -67,12 +67,15 @@ SELECT * FROM graph; ...@@ -67,12 +67,15 @@ SELECT * FROM graph;
--echo # Currently count should be 13 --echo # Currently count should be 13
SELECT count(*) FROM graph; SELECT count(*) FROM graph;
--echo # Return all edges when latch is NULL --echo # Return all edges when latch is NULL - this is different to latch='' and same as no where clause
SELECT * FROM graph where latch is NULL; SELECT * FROM graph where latch is NULL;
--echo # Return all vertices, and subsets of vertices --echo # Return all vertices, and subsets of vertices
SELECT * FROM graph where latch=''; SELECT * FROM graph where latch='';
SELECT * FROM graph where latch='0';
--echo # Currently count should be 11 --echo # Currently count should be 11
SELECT count(*) FROM graph where latch=''; SELECT count(*) FROM graph where latch='';
#-- get a subset of vertices #-- get a subset of vertices
SELECT * FROM graph where latch='' and linkid = 2; SELECT * FROM graph where latch='' and linkid = 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment