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
ccd2ca68
Commit
ccd2ca68
authored
Jun 29, 2013
by
Andrew McDonnell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dont allow ORIGID and DESTID columns to be the same as each other.
parent
5fa61317
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
storage/oqgraph/ha_oqgraph.cc
storage/oqgraph/ha_oqgraph.cc
+8
-0
No files found.
storage/oqgraph/ha_oqgraph.cc
View file @
ccd2ca68
...
@@ -632,6 +632,14 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked)
...
@@ -632,6 +632,14 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked)
free_table_share
(
share
);
free_table_share
(
share
);
return
-
1
;
return
-
1
;
}
}
// Make sure origid column != destid column
if
(
strcmp
(
origid
->
field_name
,
destid
->
field_name
)
==
0
)
{
fprint_error
(
"Invalid OQGRAPH backing store ('%s'.destid attribute set to same column as origid attribute)"
,
p
,
options
->
table_name
);
closefrm
(
edges
,
0
);
free_table_share
(
share
);
return
-
1
;
}
for
(
Field
**
field
=
edges
->
field
;
options
->
weight
&&
*
field
;
++
field
)
for
(
Field
**
field
=
edges
->
field
;
options
->
weight
&&
*
field
;
++
field
)
{
{
...
...
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