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
fe2ec190
Commit
fe2ec190
authored
Dec 08, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#2930 mysqltest++
- Updated after valgrinding
parent
58d0d538
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
9 deletions
+25
-9
client/mysqltest.c
client/mysqltest.c
+13
-9
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+12
-0
No files found.
client/mysqltest.c
View file @
fe2ec190
...
...
@@ -2676,6 +2676,7 @@ int read_query(struct st_query** q_ptr)
end:
while
(
*
p
&&
my_isspace
(
charset_info
,
*
p
))
p
++
;
if
(
!
(
q
->
query_buf
=
q
->
query
=
my_strdup
(
p
,
MYF
(
MY_WME
))))
die
(
NullS
);
...
...
@@ -3573,6 +3574,13 @@ static void run_query_stmt(MYSQL *mysql, struct st_query *command,
cur_con
->
stmt
=
stmt
;
}
/* Init dynamic strings for warnings */
if
(
!
disable_warnings
)
{
init_dynamic_string
(
&
ds_prepare_warnings
,
NULL
,
0
,
256
);
init_dynamic_string
(
&
ds_execute_warnings
,
NULL
,
0
,
256
);
}
/*
Prepare the query
*/
...
...
@@ -3580,10 +3588,6 @@ static void run_query_stmt(MYSQL *mysql, struct st_query *command,
{
handle_error
(
query
,
command
,
mysql_stmt_errno
(
stmt
),
mysql_stmt_error
(
stmt
),
mysql_stmt_sqlstate
(
stmt
),
ds
);
#ifndef BUG15518_FIXED
mysql_stmt_close
(
stmt
);
cur_con
->
stmt
=
NULL
;
#endif
goto
end
;
}
...
...
@@ -3592,12 +3596,7 @@ static void run_query_stmt(MYSQL *mysql, struct st_query *command,
separate string
*/
if
(
!
disable_warnings
)
{
init_dynamic_string
(
&
ds_prepare_warnings
,
NULL
,
0
,
256
);
init_dynamic_string
(
&
ds_execute_warnings
,
NULL
,
0
,
256
);
append_warnings
(
&
ds_prepare_warnings
,
mysql
);
}
/*
No need to call mysql_stmt_bind_param() because we have no
...
...
@@ -3724,6 +3723,10 @@ static void run_query_stmt(MYSQL *mysql, struct st_query *command,
variable then can be used from the test case itself.
*/
var_set_errno
(
mysql_stmt_errno
(
stmt
));
#ifndef BUG15518_FIXED
mysql_stmt_close
(
stmt
);
cur_con
->
stmt
=
NULL
;
#endif
DBUG_VOID_RETURN
;
}
...
...
@@ -4050,6 +4053,7 @@ void get_query_type(struct st_query* q)
q
->
type
=
Q_COMMENT
;
}
else
if
(
q
->
type
==
Q_COMMENT_WITH_COMMAND
&&
q
->
first_word_len
&&
q
->
query
[
q
->
first_word_len
-
1
]
==
';'
)
{
/*
...
...
mysql-test/mysql-test-run.sh
View file @
fe2ec190
...
...
@@ -1002,6 +1002,18 @@ report_stats () {
echo
"WARNING: Got errors/warnings while running tests. Please examine"
echo
"
$MY_LOG_DIR
/warnings for details."
fi
fi
# USE_RUNNING_SERVER
# Check valgrind errors from mysqltest
if
[
!
-z
"
$VALGRIND_MYSQLTEST
"
]
then
if
$GREP
"ERROR SUMMARY"
$MYSQLTEST_LOG
|
$GREP
-v
"0 errors"
>
/dev/null
then
$ECHO
"Valgrind detected errors!"
$GREP
"ERROR SUMMARY"
$MYSQLTEST_LOG
|
$GREP
-v
"0 errors"
$ECHO
"See
$MYSQLTEST_LOG
"
fi
fi
}
...
...
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