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
17d22305
Commit
17d22305
authored
Oct 31, 2007
by
unknown
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
9ad4366b
10ed5ae7
Changes
1
Show 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 @
17d22305
...
@@ -17112,8 +17112,8 @@ static void test_bug31669()
...
@@ -17112,8 +17112,8 @@ static void test_bug31669()
int
rc
;
int
rc
;
static
char
buff
[
LARGE_BUFFER_SIZE
+
1
];
static
char
buff
[
LARGE_BUFFER_SIZE
+
1
];
#ifndef EMBEDDED_LIBRARY
#ifndef EMBEDDED_LIBRARY
static
char
user
[
USERNAME_LENGTH
+
1
];
static
char
user
[
USERNAME_
CHAR_
LENGTH
+
1
];
static
char
db
[
NAME_LEN
+
1
];
static
char
db
[
NAME_
CHAR_
LEN
+
1
];
static
char
query
[
LARGE_BUFFER_SIZE
*
2
];
static
char
query
[
LARGE_BUFFER_SIZE
*
2
];
#endif
#endif
...
@@ -17136,13 +17136,13 @@ static void test_bug31669()
...
@@ -17136,13 +17136,13 @@ static void test_bug31669()
#ifndef EMBEDDED_LIBRARY
#ifndef EMBEDDED_LIBRARY
memset
(
db
,
'a'
,
sizeof
(
db
));
memset
(
db
,
'a'
,
sizeof
(
db
));
db
[
NAME_LEN
]
=
0
;
db
[
NAME_
CHAR_
LEN
]
=
0
;
strxmov
(
query
,
"CREATE DATABASE IF NOT EXISTS "
,
db
,
NullS
);
strxmov
(
query
,
"CREATE DATABASE IF NOT EXISTS "
,
db
,
NullS
);
rc
=
mysql_query
(
mysql
,
query
);
rc
=
mysql_query
(
mysql
,
query
);
myquery
(
rc
);
myquery
(
rc
);
memset
(
user
,
'b'
,
sizeof
(
user
));
memset
(
user
,
'b'
,
sizeof
(
user
));
user
[
USERNAME_LENGTH
]
=
0
;
user
[
USERNAME_
CHAR_
LENGTH
]
=
0
;
memset
(
buff
,
'c'
,
sizeof
(
buff
));
memset
(
buff
,
'c'
,
sizeof
(
buff
));
buff
[
LARGE_BUFFER_SIZE
]
=
0
;
buff
[
LARGE_BUFFER_SIZE
]
=
0
;
strxmov
(
query
,
"GRANT ALL PRIVILEGES ON *.* TO '"
,
user
,
"'@'%' IDENTIFIED BY "
strxmov
(
query
,
"GRANT ALL PRIVILEGES ON *.* TO '"
,
user
,
"'@'%' IDENTIFIED BY "
...
@@ -17156,21 +17156,21 @@ static void test_bug31669()
...
@@ -17156,21 +17156,21 @@ static void test_bug31669()
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
DIE_UNLESS
(
!
rc
);
DIE_UNLESS
(
!
rc
);
user
[
USERNAME_LENGTH
-
1
]
=
'a'
;
user
[
USERNAME_
CHAR_
LENGTH
-
1
]
=
'a'
;
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
DIE_UNLESS
(
rc
);
DIE_UNLESS
(
rc
);
user
[
USERNAME_LENGTH
-
1
]
=
'b'
;
user
[
USERNAME_
CHAR_
LENGTH
-
1
]
=
'b'
;
buff
[
LARGE_BUFFER_SIZE
-
1
]
=
'd'
;
buff
[
LARGE_BUFFER_SIZE
-
1
]
=
'd'
;
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
DIE_UNLESS
(
rc
);
DIE_UNLESS
(
rc
);
buff
[
LARGE_BUFFER_SIZE
-
1
]
=
'c'
;
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
);
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
DIE_UNLESS
(
rc
);
DIE_UNLESS
(
rc
);
db
[
NAME_LEN
-
1
]
=
'a'
;
db
[
NAME_
CHAR_
LEN
-
1
]
=
'a'
;
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
rc
=
mysql_change_user
(
mysql
,
user
,
buff
,
db
);
DIE_UNLESS
(
!
rc
);
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