Skip to content

Commit e31e04b

Browse files
committed
Bug#22377554: server crash after updating/inserting into table with trigger
Some activations of triggers that referenced a NEW value inside a query might experience a server exit.
1 parent d767a01 commit e31e04b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sql/item.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
2-
31
/*
4-
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
53
64
This program is free software; you can redistribute it and/or modify
75
it under the terms of the GNU General Public License as published by
@@ -1101,7 +1099,7 @@ bool Item_field::check_column_privileges(uchar *arg)
11011099
Internal_error_handler_holder<View_error_handler, TABLE_LIST>
11021100
view_handler(thd, context->view_error_handler,
11031101
context->view_error_handler_arg);
1104-
if (check_column_grant_in_table_ref(thd, cached_table,
1102+
if (check_column_grant_in_table_ref(thd, table_ref,
11051103
field_name, strlen(field_name),
11061104
thd->want_privilege))
11071105
{

0 commit comments

Comments
 (0)