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
2303a8c6
Commit
2303a8c6
authored
Apr 29, 2010
by
Ramil Kalimullin
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge.
parents
4d0e9957
0d5dbb16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
sql/sql_parse.cc
sql/sql_parse.cc
+9
-1
No files found.
sql/sql_parse.cc
View file @
2303a8c6
...
@@ -1300,8 +1300,16 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
...
@@ -1300,8 +1300,16 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
We have name + wildcard in packet, separated by endzero
We have name + wildcard in packet, separated by endzero
*/
*/
arg_end
=
strend
(
packet
);
arg_end
=
strend
(
packet
);
uint
arg_length
=
arg_end
-
packet
;
/* Check given table name length. */
if
(
arg_length
>=
packet_length
||
arg_length
>
NAME_LEN
)
{
my_message
(
ER_UNKNOWN_COM_ERROR
,
ER
(
ER_UNKNOWN_COM_ERROR
),
MYF
(
0
));
break
;
}
thd
->
convert_string
(
&
conv_name
,
system_charset_info
,
thd
->
convert_string
(
&
conv_name
,
system_charset_info
,
packet
,
(
uint
)
(
arg_end
-
packet
)
,
thd
->
charset
());
packet
,
arg_length
,
thd
->
charset
());
table_list
.
alias
=
table_list
.
table_name
=
conv_name
.
str
;
table_list
.
alias
=
table_list
.
table_name
=
conv_name
.
str
;
packet
=
arg_end
+
1
;
packet
=
arg_end
+
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