[MDEV-17042] prepared statement does not return error with SQL_MODE STRICT_TRANS_TABLES. Created: 2018-08-23 Updated: 2019-07-12 Resolved: 2019-07-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Prepared Statements |
| Affects Version/s: | 5.5, 10.0 |
| Fix Version/s: | 5.5.65 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Keita Kimura | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 6.10 on VirtualBox 5.2.18 |
||
| Description |
|
sql_mode is not worked with prepared statement. and if binlog_format is MIXED, sql_mode is saved on binlog.
So SQL thread failure:
|
| Comments |
| Comment by Alice Sherepa [ 2018-08-23 ] | ||||||||||||||
|
Thanks for the report!
| ||||||||||||||
| Comment by Oleksandr Byelkin [ 2019-07-11 ] | ||||||||||||||
|
| ||||||||||||||
| Comment by Oleksandr Byelkin [ 2019-07-11 ] | ||||||||||||||
|
It is probleme of parameters assignment, following works as it should:
| ||||||||||||||
| Comment by Oleksandr Byelkin [ 2019-07-12 ] | ||||||||||||||
|
commit 2b62f4e5a3e257fafc0173431697d7350f08ef5f (HEAD Use for parameters value conversion functions which issue warnings. | ||||||||||||||
| Comment by Alexander Barkov [ 2019-07-12 ] | ||||||||||||||
|
Please add a test for InnoDB, as in the bug report.
to
Otherwise OK to push. |