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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1b4164c1
Commit
1b4164c1
authored
May 31, 2013
by
Andrew McDonnell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove stacktrace from test case
parent
e92058de
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
mysql-test/suite/oqgraph/basic.result
mysql-test/suite/oqgraph/basic.result
+19
-0
mysql-test/suite/oqgraph/basic.test
mysql-test/suite/oqgraph/basic.test
+1
-20
No files found.
mysql-test/suite/oqgraph/basic.result
View file @
1b4164c1
...
...
@@ -77,6 +77,25 @@ latch origid destid weight seq linkid
no_search 1 2 1 3 1
no_search 1 2 1 2 3
no_search 1 2 1 1 2
SELECT * FROM graph WHERE latch='0' and destid=2 and origid=1;
latch origid destid weight seq linkid
0 1 2 1 3 1
0 1 2 1 2 3
0 1 2 1 1 2
SELECT * FROM graph WHERE latch = 'breadth_first';
latch origid destid weight seq linkid
# Expect no result, because of invalid latch
SELECT * FROM graph WHERE latch='bogus';
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch=666;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='bogus' and destid=2 and origid=1;
latch origid destid weight seq linkid
Warnings:
Warning 1210 Incorrect arguments to OQGRAPH latch
# Make sure we dont crash if someone passed in a UTF string
SELECT * FROM graph WHERE latch='Ohms Ω Tennis Ball 〄';
latch origid destid weight seq linkid
# Expect no result, because of autocast and deprecated syntax
SELECT * FROM graph WHERE latch=0 and destid=2 and origid=1;
latch origid destid weight seq linkid
...
...
mysql-test/suite/oqgraph/basic.test
View file @
1b4164c1
...
...
@@ -63,6 +63,7 @@ SELECT * FROM graph WHERE latch='dijkstras' AND origid=4 AND destid=1;
SELECT
*
FROM
graph
WHERE
latch
=
'1'
AND
origid
=
4
AND
destid
=
1
;
SELECT
*
FROM
graph
WHERE
latch
=
'no_search'
and
destid
=
2
and
origid
=
1
;
SELECT
*
FROM
graph
WHERE
latch
=
'0'
and
destid
=
2
and
origid
=
1
;
#--breadth first with no orig id etc
SELECT
*
FROM
graph
WHERE
latch
=
'breadth_first'
;
...
...
@@ -79,26 +80,6 @@ SELECT * FROM graph WHERE latch='Ohms Ω Tennis Ball 〄';
--
echo
# Expect no result, because of autocast and deprecated syntax
SELECT
*
FROM
graph
WHERE
latch
=
0
and
destid
=
2
and
origid
=
1
;
#-- FIXME SELECT * FROM graph2 WHERE latch='0' and destid=2 and origid=1; -- causes assertion (at least in debug build, havent tested normal)
#-- sql/mysqld(my_print_stacktrace+0x35)[0xdbbc02]
#-- sql/mysqld(handle_fatal_signal+0x355)[0x7dfd05]
#-- /lib/libpthread.so.0(+0xeff0)[0x7f4810addff0]
#-- /lib/libc.so.6(gsignal+0x35)[0x7f480feda1b5]
#-- /lib/libc.so.6(abort+0x180)[0x7f480fedcfc0]
#-- /lib/libc.so.6(__assert_fail+0xf1)[0x7f480fed3301]
#-- sql/mysqld(_ZN7handler8ha_resetEv+0x8b)[0x7eb6a9]
#-- sql/mysqld(_Z18close_thread_tableP3THDPP5TABLE+0x297)[0x5b1207]
#-- sql/mysqld[0x5b09c4]
#-- sql/mysqld(_Z19close_thread_tablesP3THD+0x33f)[0x5b0f5d]
#-- sql/mysqld(_Z21mysql_execute_commandP3THD+0x7fe9)[0x61cc6b]
#-- sql/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x268)[0x61f9ec]
#-- sql/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0xc3e)[0x6129ba]
#-- sql/mysqld(_Z10do_commandP3THD+0x33f)[0x611b35]
#-- sql/mysqld(_Z24do_handle_one_connectionP3THD+0x1f6)[0x721ba9]
#-- sql/mysqld(handle_one_connection+0x33)[0x721651]
#-- /lib/libpthread.so.0(+0x68ca)[0x7f4810ad58ca]
#-- /lib/libc.so.6(clone+0x6d)[0x7f480ff7792d]
--
echo
# Expect no result, because of NULL latch
SELECT
*
FROM
graph
WHERE
latch
=
NULL
and
destid
=
2
and
origid
=
1
;
...
...
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