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
7ec50bd4
Commit
7ec50bd4
authored
Oct 31, 2007
by
davi@endora
Browse files
Options
Browse Files
Download
Plain Diff
Merge endora.local:/Users/davi/mysql/bugs/31669-5.1
into endora.local:/Users/davi/mysql/mysql-5.1-runtime
parents
3154b2be
8620673f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
tests/mysql_client_test.c
tests/mysql_client_test.c
+8
-8
No files found.
tests/mysql_client_test.c
View file @
7ec50bd4
...
...
@@ -17112,8 +17112,8 @@ static void test_bug31669()
int
rc
;
static
char
buff
[
LARGE_BUFFER_SIZE
+
1
];
#ifndef EMBEDDED_LIBRARY
static
char
user
[
USERNAME_LENGTH
+
1
];
static
char
db
[
NAME_LEN
+
1
];
static
char
user
[
USERNAME_
CHAR_
LENGTH
+
1
];
static
char
db
[
NAME_
CHAR_
LEN
+
1
];
static
char
query
[
LARGE_BUFFER_SIZE
*
2
];
#endif
...
...
@@ -17136,13 +17136,13 @@ static void test_bug31669()
#ifndef EMBEDDED_LIBRARY
memset
(
db
,
'a'
,
sizeof
(
db
));
db
[
NAME_LEN
]
=
0
;
db
[
NAME_
CHAR_
LEN
]
=
0
;
strxmov
(
query
,
"CREATE DATABASE IF NOT EXISTS "
,
db
,
NullS
);
rc
=
mysql_query
(
mysql
,
query
);
myquery
(
rc
);
memset
(
user
,
'b'
,
sizeof
(
user
));
user
[
USERNAME_LENGTH
]
=
0
;
user
[
USERNAME_
CHAR_
LENGTH
]
=
0
;
memset
(
buff
,
'c'
,
sizeof
(
buff
));
buff
[
LARGE_BUFFER_SIZE
]
=
0
;
strxmov
(
query
,
"GRANT ALL PRIVILEGES ON *.* TO '"
,
user
,
"'@'%' IDENTIFIED BY "
...
...
@@ -17156,21 +17156,21 @@ static void test_bug31669()
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
DIE_UNLESS
(
!
rc
);
user
[
USERNAME_LENGTH
-
1
]
=
'a'
;
user
[
USERNAME_
CHAR_
LENGTH
-
1
]
=
'a'
;
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
DIE_UNLESS
(
rc
);
user
[
USERNAME_LENGTH
-
1
]
=
'b'
;
user
[
USERNAME_
CHAR_
LENGTH
-
1
]
=
'b'
;
buff
[
LARGE_BUFFER_SIZE
-
1
]
=
'd'
;
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
DIE_UNLESS
(
rc
);
buff
[
LARGE_BUFFER_SIZE
-
1
]
=
'c'
;
db
[
NAME_LEN
-
1
]
=
'e'
;
db
[
NAME_
CHAR_
LEN
-
1
]
=
'e'
;
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
DIE_UNLESS
(
rc
);
db
[
NAME_LEN
-
1
]
=
'a'
;
db
[
NAME_
CHAR_
LEN
-
1
]
=
'a'
;
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
DIE_UNLESS
(
!
rc
);
...
...
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