[MDEV-17037] incorrect sequence values in INSERT from SELECT query Created: 2018-08-22 Updated: 2022-09-16 Resolved: 2018-09-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Insert, Sequences |
| Affects Version/s: | 10.3.9 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Jan Owsiak | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
MS Windows 10 Pro |
||
| Description |
|
Sequence used as default value in table ('hash' in my example) produces every second value when data are inserted into table 'hash' as select from other_table. My example:
----------------------------------------------------------------------------------------------------
returns:
the sequence works correctly when INSERT INTO query is used:
|
| Comments |
| Comment by Elena Stepanova [ 2018-09-02 ] |
|
I don't see anything wrong with the result, you've got consequent values 7826, 7827, 7828. Have you pasted a wrong result set? |