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
4e116fe7
Commit
4e116fe7
authored
Feb 26, 2008
by
kostja@dipika.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Valgrind errors in mysql_client_test.
parent
79d4ed08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
tests/mysql_client_test.c
tests/mysql_client_test.c
+28
-0
No files found.
tests/mysql_client_test.c
View file @
4e116fe7
...
...
@@ -8985,6 +8985,7 @@ static void test_sqlmode()
fprintf
(
stdout
,
"
\n
query: %s"
,
query
);
stmt
=
mysql_simple_prepare
(
mysql
,
query
);
check_stmt
(
stmt
);
mysql_stmt_close
(
stmt
);
/* ANSI */
strmov
(
query
,
"SET SQL_MODE=
\"
ANSI
\"
"
);
...
...
@@ -17334,12 +17335,36 @@ static void test_bug28386()
int
rc
;
MYSQL_STMT
*
stmt
;
MYSQL_RES
*
result
;
MYSQL_ROW
row
;
MYSQL_BIND
bind
;
const
char
hello
[]
=
"hello world!"
;
DBUG_ENTER
(
"test_bug28386"
);
myheader
(
"test_bug28386"
);
rc
=
mysql_query
(
mysql
,
"select @@global.log_output"
);
myquery
(
rc
);
result
=
mysql_store_result
(
mysql
);
DIE_UNLESS
(
result
);
row
=
mysql_fetch_row
(
result
);
if
(
!
strstr
(
row
[
0
],
"TABLE"
))
{
mysql_free_result
(
result
);
if
(
!
opt_silent
)
printf
(
"Skipping the test since logging to tables is not enabled
\n
"
);
/* Log output is not to tables */
return
;
}
mysql_free_result
(
result
);
rc
=
mysql_query
(
mysql
,
"set @save_global_general_log=@@global.general_log"
);
myquery
(
rc
);
rc
=
mysql_query
(
mysql
,
"set @@global.general_log=on"
);
myquery
(
rc
);
rc
=
mysql_query
(
mysql
,
"truncate mysql.general_log"
);
myquery
(
rc
);
...
...
@@ -17380,6 +17405,9 @@ static void test_bug28386()
mysql_free_result
(
result
);
rc
=
mysql_query
(
mysql
,
"set @@global.general_log=@save_global_general_log"
);
myquery
(
rc
);
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