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
2fd7330c
Commit
2fd7330c
authored
May 05, 2009
by
Bernt M. Johnsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#23471 prepared for commit in 5.0 gca branch
parent
480fac61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
tests/mysql_client_test.c
tests/mysql_client_test.c
+19
-1
No files found.
tests/mysql_client_test.c
View file @
2fd7330c
...
@@ -3971,6 +3971,10 @@ static void test_fetch_date()
...
@@ -3971,6 +3971,10 @@ static void test_fetch_date()
myheader
(
"test_fetch_date"
);
myheader
(
"test_fetch_date"
);
/* Will not work if sql_mode is NO_ZERO_DATE (implicit if TRADITIONAL) /*/
rc
=
mysql_query
(
mysql
,
"SET SQL_MODE=''"
);
myquery
(
rc
);
rc
=
mysql_query
(
mysql
,
"DROP TABLE IF EXISTS test_bind_result"
);
rc
=
mysql_query
(
mysql
,
"DROP TABLE IF EXISTS test_bind_result"
);
myquery
(
rc
);
myquery
(
rc
);
...
@@ -4685,6 +4689,9 @@ static void test_stmt_close()
...
@@ -4685,6 +4689,9 @@ static void test_stmt_close()
/* set AUTOCOMMIT to ON*/
/* set AUTOCOMMIT to ON*/
mysql_autocommit
(
lmysql
,
TRUE
);
mysql_autocommit
(
lmysql
,
TRUE
);
rc
=
mysql_query
(
lmysql
,
"SET SQL_MODE = ''"
);
myquery
(
rc
);
rc
=
mysql_query
(
lmysql
,
"DROP TABLE IF EXISTS test_stmt_close"
);
rc
=
mysql_query
(
lmysql
,
"DROP TABLE IF EXISTS test_stmt_close"
);
myquery
(
rc
);
myquery
(
rc
);
...
@@ -11855,6 +11862,9 @@ static void test_bug6058()
...
@@ -11855,6 +11862,9 @@ static void test_bug6058()
myheader
(
"test_bug6058"
);
myheader
(
"test_bug6058"
);
rc
=
mysql_query
(
mysql
,
"SET SQL_MODE=''"
);
myquery
(
rc
);
stmt_text
=
"SELECT CAST('0000-00-00' AS DATE)"
;
stmt_text
=
"SELECT CAST('0000-00-00' AS DATE)"
;
rc
=
mysql_real_query
(
mysql
,
stmt_text
,
(
uint
)
strlen
(
stmt_text
));
rc
=
mysql_real_query
(
mysql
,
stmt_text
,
(
uint
)
strlen
(
stmt_text
));
...
@@ -13026,6 +13036,9 @@ static void test_bug8378()
...
@@ -13026,6 +13036,9 @@ static void test_bug8378()
if
(
!
opt_silent
)
if
(
!
opt_silent
)
fprintf
(
stdout
,
" OK"
);
fprintf
(
stdout
,
" OK"
);
rc
=
mysql_query
(
lmysql
,
"SET SQL_MODE=''"
);
myquery
(
rc
);
len
=
mysql_real_escape_string
(
lmysql
,
out
,
TEST_BUG8378_IN
,
4
);
len
=
mysql_real_escape_string
(
lmysql
,
out
,
TEST_BUG8378_IN
,
4
);
/* No escaping should have actually happened. */
/* No escaping should have actually happened. */
...
@@ -16056,6 +16069,11 @@ static void test_bug31669()
...
@@ -16056,6 +16069,11 @@ static void test_bug31669()
rc
=
mysql_query
(
mysql
,
query
);
rc
=
mysql_query
(
mysql
,
query
);
myquery
(
rc
);
myquery
(
rc
);
strxmov
(
query
,
"GRANT ALL PRIVILEGES ON *.* TO '"
,
user
,
"'@'localhost' IDENTIFIED BY "
"'"
,
buff
,
"' WITH GRANT OPTION"
,
NullS
);
rc
=
mysql_query
(
mysql
,
query
);
myquery
(
rc
);
rc
=
mysql_query
(
mysql
,
"FLUSH PRIVILEGES"
);
rc
=
mysql_query
(
mysql
,
"FLUSH PRIVILEGES"
);
myquery
(
rc
);
myquery
(
rc
);
...
@@ -16093,7 +16111,7 @@ static void test_bug31669()
...
@@ -16093,7 +16111,7 @@ static void test_bug31669()
strxmov
(
query
,
"DELETE FROM mysql.user WHERE User='"
,
user
,
"'"
,
NullS
);
strxmov
(
query
,
"DELETE FROM mysql.user WHERE User='"
,
user
,
"'"
,
NullS
);
rc
=
mysql_query
(
mysql
,
query
);
rc
=
mysql_query
(
mysql
,
query
);
myquery
(
rc
);
myquery
(
rc
);
DIE_UNLESS
(
mysql_affected_rows
(
mysql
)
==
1
);
DIE_UNLESS
(
mysql_affected_rows
(
mysql
)
==
2
);
#endif
#endif
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
...
...
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