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
a4a78e3c
Commit
a4a78e3c
authored
Apr 02, 2014
by
andrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for MDEV-5891 - ensure select on empty backing table works.
parent
f7753909
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
storage/oqgraph/graphcore.cc
storage/oqgraph/graphcore.cc
+6
-1
No files found.
storage/oqgraph/graphcore.cc
View file @
a4a78e3c
...
...
@@ -1122,7 +1122,12 @@ int edges_cursor::fetch_row(const row &row_info, row &result,
// but origid and destid can be -1 indicating no such record, NULL? but oqgraph3::vertex_id
// seems to resolve to VertexID (unsigned) in row
// in any case we should check for errors (-1) in origid... because all edges have at least one vertex by definition
assert
(
!
((
size_t
)
orig
==
(
size_t
)
-
1
&&
(
size_t
)
dest
==
(
size_t
)
-
1
));
// indicates we havent handle a HA_ERR_RECORD_DELETED somewhere
if
(
orig
==
(
oqgraph3
::
vertex_id
)
-
1
&&
dest
==
(
oqgraph3
::
vertex_id
)
-
1
)
{
// Select * from graph; -- when backing store is empty (bug MDEV-5891)
return
oqgraph
::
NO_MORE_DATA
;
}
// assert( ! ((size_t)orig == (size_t)-1 && (size_t)dest == (size_t)-1));
// indicates we havent handle a HA_ERR_RECORD_DELETED somewhere
result
.
orig
=
orig
;
result
.
dest
=
dest
;
...
...
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