[MDEV-10274] Bundling insert with create statement for table with unsigned Decimal primary key issues warning 1194 Created: 2016-06-22 Updated: 2016-12-19 Resolved: 2016-12-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Temporary |
| Affects Version/s: | 10.0.25, 5.5, 10.0, 10.1 |
| Fix Version/s: | 5.5.54 |
| Type: | Bug | Priority: | Major |
| Reporter: | Mark Punak | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream-fixed | ||
| Environment: |
Centos 7.1 |
||
| Sprint: | 5.5.51 & 10.2.2, 5.5.54 |
| Description |
|
Creating a temporary table with an unsigned decimal as it's primary key (or part of a primary key) in the same statement that populates the table, incorrectly returns an 1194 warning. The same code, executed as two separate statements issues no such warning.
|
| Comments |
| Comment by Elena Stepanova [ 2016-06-22 ] | ||||||||||||||||
|
The last one does not fail, it works as specified (see MySQL manual and MariaDB KB). Warnings in the second case look like a bug indeed. | ||||||||||||||||
| Comment by Elena Stepanova [ 2016-06-22 ] | ||||||||||||||||
|
Temporary table and MEMORY are not important, reproducible with a regular table and other engines as well.
Reproducible with MariaDB 5.5-10.2, probably on earlier versions as well. Assigned to holyfoot because he fixed a similar issue only 9 years ago: | ||||||||||||||||
| Comment by Alexey Botchkov [ 2016-12-19 ] | ||||||||||||||||
|
Proposed fix: |