[MDEV-21861] INSERT INTO ... SELECT ERROR Created: 2020-03-03 Updated: 2020-03-03 Resolved: 2020-03-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Insert |
| Affects Version/s: | 10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Bernd Buffen | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Testing on some MariaDB Version and also MySQL |
||
| Issue Links: |
|
||||||||
| Description |
|
If i have a SELECT query that returns 1 from 2 ROWS everything is OK. But when i add it afer a INSERT it reports a ERROR on the second ROW Sample CODE CREATE TABLE `table1` ( INSERT INTO `table1` (`id`, `dt_int`) CREATE TABLE `table2` ( – OK it returns only 1 correct ROW – reports ERROR – Incorrect datetime value: '20202020' for function str_to_date How can i fix this in the query |
| Comments |
| Comment by Alice Sherepa [ 2020-03-03 ] | |||||||||
|
SELECT produces a warning, while INSERT returns an error because of strict sql_mode (https://mariadb.com/kb/en/sql-mode/#strict-mode)
|