[MDEV-15710] server occasionally does not not use correct 'DEFAULT CURRENT_TIMESTAMP' on insert Created: 2018-03-28 Updated: 2018-07-02 Resolved: 2018-07-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Insert |
| Affects Version/s: | 10.1.28 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | chad ambrosius | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
ubuntu 14.04 |
||
| Issue Links: |
|
||||||||
| Description |
|
I have a table with a definition similar to this:
from the binlog:
Note that column 32 (created_on) gets the correct value but column 21 (last_modified) does not. It gets a value of 0. |
| Comments |
| Comment by Elena Stepanova [ 2018-05-30 ] | |||||||||||||||||||||||||||||
|
One thing I can think of right away is that the table has a trigger which conditionally sets last_modified to zero. Here is the basic example:
Could it be your case? |