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
ab5b0a47
Commit
ab5b0a47
authored
Jul 06, 2012
by
Andrei Elkin
Browse files
Options
Browse Files
Download
Plain Diff
merge from 5.5 repo.
parents
ca2baa0f
3dd7dd83
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
3 deletions
+15
-3
mysql-test/t/mysql_plugin.test
mysql-test/t/mysql_plugin.test
+2
-2
mysys/my_access.c
mysys/my_access.c
+2
-1
sql-common/client.c
sql-common/client.c
+6
-0
sql/sql_acl.cc
sql/sql_acl.cc
+1
-0
strings/ctype-utf8.c
strings/ctype-utf8.c
+4
-0
No files found.
mysql-test/t/mysql_plugin.test
View file @
ab5b0a47
...
...
@@ -372,11 +372,11 @@ let $MYSQL_PLUGIN_CMD= $MYSQL_PLUGIN -n --datadir=$MYSQL_DATADIR --basedir=$MYSQ
--
echo
# Show the help.
--
echo
#
replace_result
$MYSQL_PLUGIN
mysql_plugin
;
--
replace_regex
/
Ver
[
0
-
9.
]
+
Distrib
[
0
-
9.
]
+/
Ver
V
.
V
.
VV
Distrib
XX
.
XX
.
XX
/
/
XX
-
m
[
0
-
9
]
+/
XX
/
--
replace_regex
/
Ver
[
0
-
9.
]
+
Distrib
[
0
-
9.
]
+/
Ver
V
.
V
.
VV
Distrib
XX
.
XX
.
XX
/
/
XX
-
m
[
0
-
9
]
+/
XX
/
/
XX
[
a
-
z
]
/
XX
/
--
exec
$MYSQL_PLUGIN
--
help
replace_result
$MYSQL_PLUGIN
mysql_plugin
;
--
replace_regex
/
Ver
[
0
-
9.
]
+
Distrib
[
0
-
9.
]
+/
Ver
V
.
V
.
VV
Distrib
XX
.
XX
.
XX
/
/
XX
-
m
[
0
-
9
]
+/
XX
/
--
replace_regex
/
Ver
[
0
-
9.
]
+
Distrib
[
0
-
9.
]
+/
Ver
V
.
V
.
VV
Distrib
XX
.
XX
.
XX
/
/
XX
-
m
[
0
-
9
]
+/
XX
/
/
XX
[
a
-
z
]
/
XX
/
--
exec
$MYSQL_PLUGIN
--
version
#
...
...
mysys/my_access.c
View file @
ab5b0a47
...
...
@@ -148,7 +148,8 @@ static char reserved_map[256]=
int
check_if_legal_tablename
(
const
char
*
name
)
{
DBUG_ENTER
(
"check_if_legal_tablename"
);
DBUG_RETURN
((
reserved_map
[(
uchar
)
name
[
0
]]
&
1
)
&&
DBUG_RETURN
(
name
[
0
]
!=
0
&&
name
[
1
]
!=
0
&&
(
reserved_map
[(
uchar
)
name
[
0
]]
&
1
)
&&
(
reserved_map
[(
uchar
)
name
[
1
]]
&
2
)
&&
(
reserved_map
[(
uchar
)
name
[
2
]]
&
4
)
&&
str_list_find
(
&
reserved_names
[
1
],
name
));
...
...
sql-common/client.c
View file @
ab5b0a47
...
...
@@ -3415,6 +3415,12 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
mysql
->
server_status
=
uint2korr
(
end
+
3
);
mysql
->
server_capabilities
|=
uint2korr
(
end
+
5
)
<<
16
;
pkt_scramble_len
=
end
[
7
];
if
(
pkt_scramble_len
<
0
)
{
set_mysql_error
(
mysql
,
CR_MALFORMED_PACKET
,
unknown_sqlstate
);
/* purecov: inspected */
goto
error
;
}
}
end
+=
18
;
...
...
sql/sql_acl.cc
View file @
ab5b0a47
...
...
@@ -8032,6 +8032,7 @@ static bool send_server_handshake_packet(MPVIO_EXT *mpvio,
int2store
(
end
+
3
,
mpvio
->
server_status
[
0
]);
int2store
(
end
+
5
,
mpvio
->
client_capabilities
>>
16
);
end
[
7
]
=
data_len
;
DBUG_EXECUTE_IF
(
"poison_srv_handshake_scramble_len"
,
end
[
7
]
=
-
100
;);
bzero
(
end
+
8
,
10
);
end
+=
18
;
/* write scramble tail */
...
...
strings/ctype-utf8.c
View file @
ab5b0a47
...
...
@@ -4421,6 +4421,10 @@ my_wc_mb_filename(CHARSET_INFO *cs __attribute__((unused)),
{
int
code
;
char
hex
[]
=
"0123456789abcdef"
;
if
(
s
>=
e
)
return
MY_CS_TOOSMALL
;
if
(
wc
<
128
&&
filename_safe_char
[
wc
])
{
*
s
=
(
uchar
)
wc
;
...
...
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