You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @lpc921, nice find! This was a bug in the timestamp update trigger that escaped current_timestamp as if it were a column.
const TimestampTriggerTemplate = `
create trigger if not exists :name: after update on :modelName: begin
- update :modelName: set :column: = \`current_timestamp\`+ update :modelName: set :column: = current_timestamp
where :key: = \`old\`.:key:;
end
`
I've pushed a patch already but it looks like there are some dependency issues to work out before a release can happen.
description
Using the
update
method on a model withprimary
orunique
field, andtimestamps: true
option results in exception.steps to reproduce
.update
source
error
expected
Update should work
actual
Exception was thrown
The text was updated successfully, but these errors were encountered: