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
9e01fddb
Commit
9e01fddb
authored
Jul 20, 2010
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove exceptions to the assert, bug has been fixed.
parent
3a22d332
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
sql/sql_error.cc
sql/sql_error.cc
+4
-9
No files found.
sql/sql_error.cc
View file @
9e01fddb
...
@@ -588,16 +588,11 @@ void push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level,
...
@@ -588,16 +588,11 @@ void push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level,
DBUG_PRINT
(
"enter"
,
(
"code: %d, msg: %s"
,
code
,
msg
));
DBUG_PRINT
(
"enter"
,
(
"code: %d, msg: %s"
,
code
,
msg
));
/*
/*
Calling push_warning/push_warning_printf with a
Calling push_warning/push_warning_printf with a level of
level of WARN_LEVEL_ERROR *is* a bug.
WARN_LEVEL_ERROR *is* a bug. Either use my_printf_error(),
Either use my_error(), or WARN_LEVEL_WARN.
my_error(), or WARN_LEVEL_WARN.
Please fix the calling code, and do *NOT*
add more work around code in the assert below.
*/
*/
DBUG_ASSERT
(
(
level
!=
MYSQL_ERROR
::
WARN_LEVEL_ERROR
)
DBUG_ASSERT
(
level
!=
MYSQL_ERROR
::
WARN_LEVEL_ERROR
);
||
(
code
==
ER_CANT_CREATE_TABLE
)
/* See Bug#47233 */
||
(
code
==
ER_ILLEGAL_HA_CREATE_OPTION
)
/* See Bug#47233 */
);
if
(
level
==
MYSQL_ERROR
::
WARN_LEVEL_ERROR
)
if
(
level
==
MYSQL_ERROR
::
WARN_LEVEL_ERROR
)
level
=
MYSQL_ERROR
::
WARN_LEVEL_WARN
;
level
=
MYSQL_ERROR
::
WARN_LEVEL_WARN
;
...
...
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