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
b036ffec
Commit
b036ffec
authored
Sep 08, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for #1219
libmysqld/lib_sql.cc: we need ER() macrodefinition from errmsg.h
parent
be67ce0b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+9
-7
No files found.
libmysqld/lib_sql.cc
View file @
b036ffec
...
@@ -37,6 +37,7 @@ char server_inited;
...
@@ -37,6 +37,7 @@ char server_inited;
C_MODE_START
C_MODE_START
#include <mysql.h>
#include <mysql.h>
#undef ER
#include "errmsg.h"
#include "errmsg.h"
#include <sql_common.h>
#include <sql_common.h>
...
@@ -55,12 +56,13 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
...
@@ -55,12 +56,13 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
{
{
my_bool
result
=
1
;
my_bool
result
=
1
;
THD
*
thd
=
(
THD
*
)
mysql
->
thd
;
THD
*
thd
=
(
THD
*
)
mysql
->
thd
;
NET
*
net
=
&
mysql
->
net
;
/* Check that we are calling the client functions in right order */
/* Check that we are calling the client functions in right order */
if
(
mysql
->
status
!=
MYSQL_STATUS_READY
)
if
(
mysql
->
status
!=
MYSQL_STATUS_READY
)
{
{
strmov
(
thd
->
net
.
last_error
,
strmov
(
net
->
last_error
,
ER
(
thd
->
net
.
last_errno
=
CR_COMMANDS_OUT_OF_SYNC
));
ER
(
net
->
last_errno
=
CR_COMMANDS_OUT_OF_SYNC
));
return
1
;
return
1
;
}
}
...
@@ -76,12 +78,12 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
...
@@ -76,12 +78,12 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
if
(
!
skip_check
)
if
(
!
skip_check
)
result
=
thd
->
net
.
last_errno
?
-
1
:
0
;
result
=
thd
->
net
.
last_errno
?
-
1
:
0
;
if
((
mysql
->
net
.
last_errno
=
thd
->
net
.
last_errno
))
if
((
net
->
last_errno
=
thd
->
net
.
last_errno
))
{
{
memcpy
(
mysql
->
net
.
last_error
,
thd
->
net
.
last_error
,
memcpy
(
net
->
last_error
,
net
->
last_error
,
sizeof
(
mysql
->
net
.
last_error
));
sizeof
(
net
->
last_error
));
memcpy
(
mysql
->
net
.
sqlstate
,
thd
->
net
.
sqlstate
,
memcpy
(
net
->
sqlstate
,
thd
->
net
.
sqlstate
,
sizeof
(
mysql
->
net
.
sqlstate
));
sizeof
(
net
->
sqlstate
));
}
}
mysql
->
warning_count
=
((
THD
*
)
mysql
->
thd
)
->
total_warn_count
;
mysql
->
warning_count
=
((
THD
*
)
mysql
->
thd
)
->
total_warn_count
;
return
result
;
return
result
;
...
...
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