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
d55efe33
Commit
d55efe33
authored
Oct 07, 2004
by
magnus@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sned original NDB error as warning to client
parent
ac9016df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+7
-2
No files found.
sql/ha_ndbcluster.cc
View file @
d55efe33
...
...
@@ -134,8 +134,13 @@ static int ndb_to_mysql_error(const NdbError *err)
uint
i
;
for
(
i
=
0
;
err_map
[
i
].
ndb_err
!=
err
->
code
;
i
++
)
{
if
(
err_map
[
i
].
my_err
==
-
1
)
if
(
err_map
[
i
].
my_err
==
-
1
){
// Push the NDB error message as warning
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
ER_GET_ERRMSG
,
ER
(
ER_GET_ERRMSG
),
err
->
code
,
err
->
message
,
"NDB"
);
return
err
->
code
;
}
}
return
err_map
[
i
].
my_err
;
}
...
...
@@ -2188,7 +2193,7 @@ int ha_ndbcluster::index_read(byte *buf,
default:
case
UNDEFINED_INDEX
:
DBUG_ASSERT
(
false
);
return
1
;
DBUG_RETURN
(
1
)
;
break
;
}
...
...
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