[MCOL-2059] Strings or empty strings are inserted as zero values in numeric data types Created: 2019-01-04 Updated: 2019-09-29 Resolved: 2019-09-29 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MariaDB Server |
| Affects Version/s: | 1.2.2 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Major |
| Reporter: | Zdravelina Sokolovska (Inactive) | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Strings or empty strings are inserted as zero values in numeric data types expected: receive Error and operation is rejected note:builtin innodb_version 10.3.11 and server version 10.3.11-MariaDB 1. Create tables with engine Columnstore and InnoDB columns of integer data type 1.
2.1 Insert a string
2.2 Insert an empty string
expected behavior as in pure MariDB server installation:
|
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2019-01-04 ] |
|
As shown in your examples, behaviour is the same for both InnoDB and ColumnStore tables. You get a warning each time telling you this happened. |
| Comment by Andrew Hutchings (Inactive) [ 2019-01-04 ] |
|
Note that the additional "expected behavior" in the description edit makes this a duplicate of |
| Comment by Zdravelina Sokolovska (Inactive) [ 2019-01-04 ] |
|
issue seems to be related to the defaults setting of the sql_mode; strict_trans_tables is not included : |
| Comment by Zdravelina Sokolovska (Inactive) [ 2019-01-04 ] |
|
related to |