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
20ca3286
Commit
20ca3286
authored
Mar 14, 2005
by
marty@linux.site
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0
into linux.site:/home/marty/MySQL/mysql-5.0
parents
5d2107f9
e6d7c9fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
sql/mysql_priv.h
sql/mysql_priv.h
+1
-1
sql/sql_base.cc
sql/sql_base.cc
+2
-1
sql/sql_error.cc
sql/sql_error.cc
+4
-2
No files found.
sql/mysql_priv.h
View file @
20ca3286
...
@@ -821,7 +821,7 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level, uint
...
@@ -821,7 +821,7 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level, uint
const
char
*
msg
);
const
char
*
msg
);
void
push_warning_printf
(
THD
*
thd
,
MYSQL_ERROR
::
enum_warning_level
level
,
void
push_warning_printf
(
THD
*
thd
,
MYSQL_ERROR
::
enum_warning_level
level
,
uint
code
,
const
char
*
format
,
...);
uint
code
,
const
char
*
format
,
...);
void
mysql_reset_errors
(
THD
*
thd
);
void
mysql_reset_errors
(
THD
*
thd
,
bool
force
=
false
);
bool
mysqld_show_warnings
(
THD
*
thd
,
ulong
levels_to_show
);
bool
mysqld_show_warnings
(
THD
*
thd
,
ulong
levels_to_show
);
/* sql_handler.cc */
/* sql_handler.cc */
...
...
sql/sql_base.cc
View file @
20ca3286
...
@@ -1606,7 +1606,8 @@ static int open_unireg_entry(THD *thd, TABLE *entry, const char *db,
...
@@ -1606,7 +1606,8 @@ static int open_unireg_entry(THD *thd, TABLE *entry, const char *db,
if
(
ha_create_table_from_engine
(
thd
,
db
,
name
,
TRUE
)
!=
0
)
if
(
ha_create_table_from_engine
(
thd
,
db
,
name
,
TRUE
)
!=
0
)
goto
err
;
goto
err
;
thd
->
clear_error
();
// Clear error message
mysql_reset_errors
(
thd
,
true
);
// Clear warnings
thd
->
clear_error
();
// Clear error message
continue
;
continue
;
}
}
...
...
sql/sql_error.cc
View file @
20ca3286
...
@@ -64,6 +64,7 @@ void MYSQL_ERROR::set_msg(THD *thd, const char *msg_arg)
...
@@ -64,6 +64,7 @@ void MYSQL_ERROR::set_msg(THD *thd, const char *msg_arg)
SYNOPSIS
SYNOPSIS
mysql_reset_errors()
mysql_reset_errors()
thd Thread handle
thd Thread handle
force Reset warnings even if it has been done before
IMPLEMENTATION
IMPLEMENTATION
Don't reset warnings if this has already been called for this query.
Don't reset warnings if this has already been called for this query.
...
@@ -71,14 +72,15 @@ void MYSQL_ERROR::set_msg(THD *thd, const char *msg_arg)
...
@@ -71,14 +72,15 @@ void MYSQL_ERROR::set_msg(THD *thd, const char *msg_arg)
in which case push_warnings() has already called this function.
in which case push_warnings() has already called this function.
*/
*/
void
mysql_reset_errors
(
THD
*
thd
)
void
mysql_reset_errors
(
THD
*
thd
,
bool
force
)
{
{
DBUG_ENTER
(
"mysql_reset_errors"
);
DBUG_ENTER
(
"mysql_reset_errors"
);
if
(
thd
->
query_id
!=
thd
->
warn_id
)
if
(
thd
->
query_id
!=
thd
->
warn_id
||
force
)
{
{
thd
->
warn_id
=
thd
->
query_id
;
thd
->
warn_id
=
thd
->
query_id
;
free_root
(
&
thd
->
warn_root
,
MYF
(
0
));
free_root
(
&
thd
->
warn_root
,
MYF
(
0
));
bzero
((
char
*
)
thd
->
warn_count
,
sizeof
(
thd
->
warn_count
));
bzero
((
char
*
)
thd
->
warn_count
,
sizeof
(
thd
->
warn_count
));
if
(
force
)
thd
->
total_warn_count
=
0
;
thd
->
warn_list
.
empty
();
thd
->
warn_list
.
empty
();
thd
->
row_count
=
1
;
// by default point to row 1
thd
->
row_count
=
1
;
// by default point to row 1
}
}
...
...
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