-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a657abd
commit 6ff6bf8
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
storage/oqgraph/mysql-test/oqgraph/regression_mdev6345.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
DROP TABLE IF EXISTS oq_backing; | ||
DROP TABLE IF EXISTS oq_graph; | ||
CREATE TABLE oq_backing (origid INT UNSIGNED NOT NULL, destid INT UNSIGNED NOT NULL, PRIMARY KEY (origid, destid), KEY (destid)); | ||
INSERT INTO oq_backing(origid, destid) VALUES (1,2), (2,3), (3,4), (4,5), (2,6), (5,6); | ||
CREATE TABLE oq_graph (latch VARCHAR(32) NULL, origid BIGINT UNSIGNED NULL, destid BIGINT UNSIGNED NULL, weight DOUBLE NULL, seq BIGINT UNSIGNED NULL, linkid BIGINT UNSIGNED NULL, KEY (latch, origid, destid) USING HASH, KEY (latch, destid, origid) USING HASH) ENGINE=OQGRAPH data_table='oq_backing' origid='origid' destid='destid'; | ||
SELECT * FROM oq_graph WHERE latch='breadth_first' AND origid=1 AND destid=6; | ||
latch origid destid weight seq linkid | ||
breadth_first 1 6 NULL 0 1 | ||
breadth_first 1 6 1 1 2 | ||
breadth_first 1 6 1 2 6 | ||
DROP TABLE IF EXISTS oq_backing; | ||
DROP TABLE IF EXISTS oq_graph; |
19 changes: 19 additions & 0 deletions
19
storage/oqgraph/mysql-test/oqgraph/regression_mdev6345.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#-- This test is probably not right, because the real bug manifested over a network connection on a busy server. | ||
|
||
--disable_warnings | ||
DROP TABLE IF EXISTS oq_backing; | ||
DROP TABLE IF EXISTS oq_graph; | ||
--enable_warnings | ||
|
||
|
||
CREATE TABLE oq_backing (origid INT UNSIGNED NOT NULL, destid INT UNSIGNED NOT NULL, PRIMARY KEY (origid, destid), KEY (destid)); | ||
|
||
INSERT INTO oq_backing(origid, destid) VALUES (1,2), (2,3), (3,4), (4,5), (2,6), (5,6); | ||
|
||
CREATE TABLE oq_graph (latch VARCHAR(32) NULL, origid BIGINT UNSIGNED NULL, destid BIGINT UNSIGNED NULL, weight DOUBLE NULL, seq BIGINT UNSIGNED NULL, linkid BIGINT UNSIGNED NULL, KEY (latch, origid, destid) USING HASH, KEY (latch, destid, origid) USING HASH) ENGINE=OQGRAPH data_table='oq_backing' origid='origid' destid='destid'; | ||
|
||
SELECT * FROM oq_graph WHERE latch='breadth_first' AND origid=1 AND destid=6; | ||
|
||
DROP TABLE IF EXISTS oq_backing; | ||
DROP TABLE IF EXISTS oq_graph; | ||
|