Added make targets 'test-bt-fast' and 'test-bt-debug-fast'

Put variable declaration at the beginning of a block
This commit is contained in:
Hery Ramilison 2009-10-15 00:40:40 +02:00
parent 3d35e53c85
commit 7df70d09a9
2 changed files with 34 additions and 27 deletions

View File

@ -166,10 +166,16 @@ test-bt:
@PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \ @PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
fi fi
test-bt-fast:
-cd mysql-test ; MTR_BUILD_THREAD=auto \
@PERL@ ./mysql-test-run.pl --force --comment=ps --ps-protocol --report-features
test-bt-debug: test-bt-debug:
-cd mysql-test ; MTR_BUILD_THREAD=auto \ -cd mysql-test ; MTR_BUILD_THREAD=auto \
@PERL@ ./mysql-test-run.pl --force --comment=debug --report-features @PERL@ ./mysql-test-run.pl --force --comment=debug --report-features
test-bt-debug-fast:
# Keep these for a while # Keep these for a while
test-pl: test test-pl: test
test-full-pl: test-full test-full-pl: test-full

View File

@ -6350,6 +6350,7 @@ void run_query_stmt(MYSQL *mysql, struct st_command *command,
Need to grab affected rows information before getting Need to grab affected rows information before getting
warnings here warnings here
*/ */
{
ulonglong affected_rows; ulonglong affected_rows;
LINT_INIT(affected_rows); LINT_INIT(affected_rows);
@ -6381,7 +6382,7 @@ void run_query_stmt(MYSQL *mysql, struct st_command *command,
if (!disable_info) if (!disable_info)
append_info(ds, affected_rows, mysql_info(mysql)); append_info(ds, affected_rows, mysql_info(mysql));
}
} }
end: end: