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
a0529097
Commit
a0529097
authored
Feb 13, 2004
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into deer.(none):/home/hf/work/mysql-4.1.2211
parents
b865fb1c
c25fc5c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+1
-6
sql/sql_class.h
sql/sql_class.h
+1
-2
sql/sql_parse.cc
sql/sql_parse.cc
+11
-3
No files found.
libmysqld/lib_sql.cc
View file @
a0529097
...
@@ -251,7 +251,7 @@ int emb_next_result(MYSQL *mysql)
...
@@ -251,7 +251,7 @@ int emb_next_result(MYSQL *mysql)
DBUG_ENTER
(
"emb_next_result"
);
DBUG_ENTER
(
"emb_next_result"
);
if
(
emb_advanced_command
(
mysql
,
COM_QUERY
,
0
,
0
,
if
(
emb_advanced_command
(
mysql
,
COM_QUERY
,
0
,
0
,
thd
->
query_rest
,
thd
->
query_rest_length
,
1
)
thd
->
query_rest
.
ptr
(),
thd
->
query_rest
.
length
()
,
1
)
||
emb_mysql_read_query_result
(
mysql
))
||
emb_mysql_read_query_result
(
mysql
))
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
...
@@ -765,11 +765,6 @@ bool Protocol::net_store_data(const char *from, uint length)
...
@@ -765,11 +765,6 @@ bool Protocol::net_store_data(const char *from, uint length)
return
false
;
return
false
;
}
}
char
*
memdup_mysql
(
struct
st_mysql
*
mysql
,
const
char
*
data
,
int
length
)
{
return
memdup_root
(
&
mysql
->
field_alloc
,
data
,
length
);
}
#if 0
#if 0
/* The same as Protocol::net_store_data but does the converstion
/* The same as Protocol::net_store_data but does the converstion
*/
*/
...
...
sql/sql_class.h
View file @
a0529097
...
@@ -565,8 +565,7 @@ public:
...
@@ -565,8 +565,7 @@ public:
struct
st_mysql_bind
*
client_params
;
struct
st_mysql_bind
*
client_params
;
char
*
extra_data
;
char
*
extra_data
;
ulong
extra_length
;
ulong
extra_length
;
char
*
query_rest
;
String
query_rest
;
uint32
query_rest_length
;
#endif
#endif
NET
net
;
// client connection descriptor
NET
net
;
// client connection descriptor
MEM_ROOT
warn_root
;
// For warnings and errors
MEM_ROOT
warn_root
;
// For warnings and errors
...
...
sql/sql_parse.cc
View file @
a0529097
...
@@ -48,7 +48,6 @@
...
@@ -48,7 +48,6 @@
extern
"C"
int
gethostname
(
char
*
name
,
int
namelen
);
extern
"C"
int
gethostname
(
char
*
name
,
int
namelen
);
#endif
#endif
char
*
memdup_mysql
(
struct
st_mysql
*
mysql
,
const
char
*
data
,
int
length
);
static
int
check_for_max_user_connections
(
THD
*
thd
,
USER_CONN
*
uc
);
static
int
check_for_max_user_connections
(
THD
*
thd
,
USER_CONN
*
uc
);
static
void
decrease_user_connections
(
USER_CONN
*
uc
);
static
void
decrease_user_connections
(
USER_CONN
*
uc
);
static
bool
check_db_used
(
THD
*
thd
,
TABLE_LIST
*
tables
);
static
bool
check_db_used
(
THD
*
thd
,
TABLE_LIST
*
tables
);
...
@@ -1420,8 +1419,17 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
...
@@ -1420,8 +1419,17 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
#ifndef EMBEDDED_LIBRARY
#ifndef EMBEDDED_LIBRARY
mysql_parse
(
thd
,
packet
,
length
);
mysql_parse
(
thd
,
packet
,
length
);
#else
#else
thd
->
query_rest
=
(
char
*
)
memdup_mysql
(
thd
->
mysql
,
packet
,
length
);
/*
thd
->
query_rest_length
=
length
;
'packet' can point inside the query_rest's buffer
so we have to do memmove here
*/
if
(
thd
->
query_rest
.
length
()
>
length
)
{
memmove
(
thd
->
query_rest
.
c_ptr
(),
packet
,
length
);
thd
->
query_rest
.
length
(
length
);
}
else
thd
->
query_rest
.
copy
(
length
);
break
;
break
;
#endif
/*EMBEDDED_LIBRARY*/
#endif
/*EMBEDDED_LIBRARY*/
}
}
...
...
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