From 3f1f7102caf120c8ac0fc23eddce5c6ab0554209 Mon Sep 17 00:00:00 2001 From: "igor@rurik.mysql.com" <> Date: Fri, 12 Aug 2005 02:17:27 -0700 Subject: [PATCH] sql_view.cc: A safety correction. --- sql/sql_view.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sql/sql_view.cc b/sql/sql_view.cc index aedff648e5c..a910cdb2fbc 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -1110,7 +1110,10 @@ bool check_key_in_view(THD *thd, TABLE_LIST *view) for (Field_translator *fld= trans; fld < end_of_trans; fld++) { if (!fld->item->fixed && fld->item->fix_fields(thd, &fld->item)) + { + thd->set_query_id= save_set_query_id; return TRUE; + } } thd->set_query_id= save_set_query_id; } -- 2.30.9