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
2bea97b1
Commit
2bea97b1
authored
May 09, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/jonas/src/mysql-5.0
parents
fe54aa8d
fd88f459
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
libmysqld/libmysqld.c
libmysqld/libmysqld.c
+8
-5
sql/sql_parse.cc
sql/sql_parse.cc
+3
-3
No files found.
libmysqld/libmysqld.c
View file @
2bea97b1
...
...
@@ -199,6 +199,14 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
unix_socket
=
0
;
db_name
=
db
?
my_strdup
(
db
,
MYF
(
MY_WME
))
:
NULL
;
/* Send client information for access check */
client_flag
|=
CLIENT_CAPABILITIES
;
if
(
client_flag
&
CLIENT_MULTI_STATEMENTS
)
client_flag
|=
CLIENT_MULTI_RESULTS
;
client_flag
&=
~
CLIENT_COMPRESS
;
if
(
db
)
client_flag
|=
CLIENT_CONNECT_WITH_DB
;
mysql
->
thd
=
create_embedded_thd
(
client_flag
,
db_name
);
init_embedded_mysql
(
mysql
,
client_flag
,
db_name
);
...
...
@@ -209,11 +217,6 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
if
(
mysql_init_charset
(
mysql
))
goto
error
;
/* Send client information for access check */
client_flag
|=
CLIENT_CAPABILITIES
;
client_flag
&=
~
CLIENT_COMPRESS
;
if
(
db
)
client_flag
|=
CLIENT_CONNECT_WITH_DB
;
mysql
->
server_status
=
SERVER_STATUS_AUTOCOMMIT
;
if
(
mysql
->
options
.
init_commands
)
...
...
sql/sql_parse.cc
View file @
2bea97b1
...
...
@@ -1433,9 +1433,6 @@ bool do_command(THD *thd)
}
else
{
if
(
thd
->
killed
==
THD
::
KILL_QUERY
||
thd
->
killed
==
THD
::
KILL_BAD_DATA
)
thd
->
killed
=
THD
::
NOT_KILLED
;
packet
=
(
char
*
)
net
->
read_pos
;
command
=
(
enum
enum_server_command
)
(
uchar
)
packet
[
0
];
if
(
command
>=
COM_END
)
...
...
@@ -1482,6 +1479,9 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
bool
error
=
0
;
DBUG_ENTER
(
"dispatch_command"
);
if
(
thd
->
killed
==
THD
::
KILL_QUERY
||
thd
->
killed
==
THD
::
KILL_BAD_DATA
)
thd
->
killed
=
THD
::
NOT_KILLED
;
thd
->
command
=
command
;
/*
Commands which will always take a long time should be marked with
...
...
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