Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
4d2e45a8
Commit
4d2e45a8
authored
Aug 09, 2013
by
Andrew McDonnell
Browse files
Options
Browse Files
Download
Plain Diff
Update test harnesses.
parents
f8f17f2a
54e60bcb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
mysql-test/suite/oqgraph/basic.result
mysql-test/suite/oqgraph/basic.result
+14
-1
mysql-test/suite/oqgraph/basic.test
mysql-test/suite/oqgraph/basic.test
+4
-1
No files found.
mysql-test/suite/oqgraph/basic.result
View file @
4d2e45a8
...
...
@@ -46,7 +46,7 @@ NULL 12 10 1 NULL NULL
SELECT count(*) FROM graph;
count(*)
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;
latch origid destid weight seq linkid
NULL 1 2 1 NULL NULL
...
...
@@ -76,6 +76,19 @@ latch origid destid weight seq linkid
NULL NULL NULL NULL 10
NULL NULL NULL NULL 11
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
SELECT count(*) FROM graph where latch='';
count(*)
...
...
mysql-test/suite/oqgraph/basic.test
View file @
4d2e45a8
...
...
@@ -67,12 +67,15 @@ SELECT * FROM graph;
--
echo
# Currently count should be 13
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
;
--
echo
# Return all vertices, and subsets of vertices
SELECT
*
FROM
graph
where
latch
=
''
;
SELECT
*
FROM
graph
where
latch
=
'0'
;
--
echo
# Currently count should be 11
SELECT
count
(
*
)
FROM
graph
where
latch
=
''
;
#-- get a subset of vertices
SELECT
*
FROM
graph
where
latch
=
''
and
linkid
=
2
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment