diff options
author | Staale Smedseng <staale.smedseng@sun.com> | 2009-10-09 15:34:07 +0200 |
---|---|---|
committer | Staale Smedseng <staale.smedseng@sun.com> | 2009-10-09 15:34:07 +0200 |
commit | 5eb71aca21e7376cd48e4657d8d297576aa5c212 (patch) | |
tree | 244b3938a0b73a7f8aafae46e073c77f5bf6acdd /mysql-test/r/func_math.result | |
parent | e15708d5d2e74ef3aa3b2e94441e0300ca6dea27 (diff) | |
download | mariadb-git-5eb71aca21e7376cd48e4657d8d297576aa5c212.tar.gz |
This is a backport of the two patches for Bug #28299:
To-number conversion warnings work differenly with CHAR
and VARCHAR sp variables.
The original revision-IDs are:
staale.smedseng@sun.com-20081124095339-2qdvzkp0rn1ljs30
staale.smedseng@sun.com-20081125104611-rtxic5d12e83ag2o
The patch provides ER_TRUNCATED_WRONG_VALUE warning messages
for conversion of VARCHAR to numberic values, in line with
messages provided for CHAR conversions. Conversions are
checked for success, and the message is emitted in case
failure.
The tests are amended to accept the added warning messages,
and explicit conversion of ON/OFF values is added for
statements checking system variables. In test
rpl.rpl_switch_stm_row_mixed checking for warnings is
temporarily disabled for one statement, as this generates
warning messages for strings that vary between executions.
Diffstat (limited to 'mysql-test/r/func_math.result')
-rw-r--r-- | mysql-test/r/func_math.result | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/func_math.result b/mysql-test/r/func_math.result index d8b8a14afc6..33ae2e0a5a4 100644 --- a/mysql-test/r/func_math.result +++ b/mysql-test/r/func_math.result @@ -382,6 +382,9 @@ y SELECT b DIV 900 y FROM t1 GROUP BY y; y 0 +Warnings: +Warning 1292 Truncated incorrect INTEGER value: 'str1' +Warning 1292 Truncated incorrect INTEGER value: 'str2' SELECT c DIV 900 y FROM t1 GROUP BY y; y 0 |