Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding 1 second to trigger creation time #896

Merged
merged 2 commits into from
Mar 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions enginetest/trigger_queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ end;`,
nil, // action_reference_new_table
"OLD", // action_reference_old_row
"NEW", // action_reference_new_row
time.Unix(0, 0).UTC(), // created
time.Unix(1, 0).UTC(), // created
"", // sql_mode
"", // definer
sql.Collation_Default.CharacterSet().String(), // character_set_client
Expand All @@ -1423,7 +1423,7 @@ end;`,
nil, // action_reference_new_table
"OLD", // action_reference_old_row
"NEW", // action_reference_new_row
time.Unix(0, 0).UTC(), // created
time.Unix(1, 0).UTC(), // created
"", // sql_mode
"", // definer
sql.Collation_Default.CharacterSet().String(), // character_set_client
Expand All @@ -1447,7 +1447,7 @@ end;`,
nil, // action_reference_new_table
"OLD", // action_reference_old_row
"NEW", // action_reference_new_row
time.Unix(0, 0).UTC(), // created
time.Unix(1, 0).UTC(), // created
"", // sql_mode
"", // definer
sql.Collation_Default.CharacterSet().String(), // character_set_client
Expand All @@ -1471,7 +1471,7 @@ end;`,
nil, // action_reference_new_table
"OLD", // action_reference_old_row
"NEW", // action_reference_new_row
time.Unix(0, 0).UTC(), // created
time.Unix(1, 0).UTC(), // created
"", // sql_mode
"", // definer
sql.Collation_Default.CharacterSet().String(), // character_set_client
Expand All @@ -1495,7 +1495,7 @@ end;`,
nil, // action_reference_new_table
"OLD", // action_reference_old_row
"NEW", // action_reference_new_row
time.Unix(0, 0).UTC(), // created
time.Unix(1, 0).UTC(), // created
"", // sql_mode
"", // definer
sql.Collation_Default.CharacterSet().String(), // character_set_client
Expand All @@ -1519,7 +1519,7 @@ end;`,
nil, // action_reference_new_table
"OLD", // action_reference_old_row
"NEW", // action_reference_new_row
time.Unix(0, 0).UTC(), // created
time.Unix(1, 0).UTC(), // created
"", // sql_mode
"", // definer
sql.Collation_Default.CharacterSet().String(), // character_set_client
Expand All @@ -1543,7 +1543,7 @@ end;`,
nil, // action_reference_new_table
"OLD", // action_reference_old_row
"NEW", // action_reference_new_row
time.Unix(0, 0).UTC(), // created
time.Unix(1, 0).UTC(), // created
"", // sql_mode
"", // definer
sql.Collation_Default.CharacterSet().String(), // character_set_client
Expand All @@ -1567,7 +1567,7 @@ end;`,
nil, // action_reference_new_table
"OLD", // action_reference_old_row
"NEW", // action_reference_new_row
time.Unix(0, 0).UTC(), // created
time.Unix(1, 0).UTC(), // created
"", // sql_mode
"", // definer
sql.Collation_Default.CharacterSet().String(), // character_set_client
Expand Down
2 changes: 1 addition & 1 deletion sql/information_schema/information_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ func triggersRowIter(ctx *Context, c Catalog) (RowIter, error) {
nil, // action_reference_new_table
"OLD", // action_reference_old_row
"NEW", // action_reference_new_row
time.Unix(0, 0).UTC(), // created
time.Unix(1, 0).UTC(), // created
"", // sql_mode
"", // definer
characterSetClient, // character_set_client
Expand Down
2 changes: 1 addition & 1 deletion sql/plan/show_triggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (s *ShowTriggers) RowIter(ctx *sql.Context, row sql.Row) (sql.RowIter, erro
tableName, // Table
trigger.BodyString, // Statement
triggerTime, // Timing
time.Unix(0, 0).UTC(), // Created
time.Unix(1, 0).UTC(), // Created
"", // sql_mode
"", // Definer
characterSetClient, // character_set_client
Expand Down