| Bug #21089 | mysqltest doesn't print warnings produced by mysql_prepare(stmt-with-resultset) | ||
|---|---|---|---|
| Submitted: | 17 Jul 2006 1:48 | Modified: | 12 Jan 2011 12:05 |
| Reporter: | Sergey Petrunya | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | Tools: MTR / mysql-test-run | Severity: | S3 (Non-critical) |
| Version: | OS: | Any | |
| Assigned to: | Bjørn Munch | CPU Architecture: | Any |
[17 Jul 2006 1:48]
Sergey Petrunya
[17 Jul 2006 2:24]
Sergey Petrunya
The following fix makes the mysql_prepare() warnings to be printed into test output:
===== mysqltest.c 1.237 vs edited =====
*** /home/psergey/mysql-5.0-opt-check/BitKeeper/tmp/bk_mysqltest.c-1.237_CH72IE 2006-07-17 10:14:37 +04:00
--- edited/mysqltest.c 2006-07-17 09:46:36 +04:00
***************
*** 3985,3991 ****
mysql_free_result(res); /* Free normal result set with meta data */
/* Clear prepare warnings */
! dynstr_set(&ds_prepare_warnings, NULL);
}
else
{
--- 3985,3991 ----
mysql_free_result(res); /* Free normal result set with meta data */
/* Clear prepare warnings */
! //psergey: don't: dynstr_set(&ds_prepare_warnings, NULL);
}
else
{
--end of file--
However, we can't just push it. The problem is that certain warnings are retruned for both mysql_stmt_prepare() and mysql_stmt_execute(). I've already caught those:
Incorrect date value: 'zzz' for column 'f1' at row 1
Column 'c2' in group statement is ambiguous
Returning a warning in both mysql_stmt_prepare() and mysql_stmt_execute() causes this:
- with --ps-protocol test result contains two copies warnings.
- without --ps-protocol test result contains one warning.
while the testsuite (correctly) expects output to be the same with and without --ps-protocol.
- without
[12 Jan 2011 12:05]
Bjørn Munch
Duplicate of recently fixed Bug #47902
