~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

Viewing changes to sql/sql_trigger.cc

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-04-16 20:07:10 UTC
  • mto: (1.3.9 vivid-proposed)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20150416200710-pcrsa022082zj46k
Tags: upstream-5.6.24
ImportĀ upstreamĀ versionĀ 5.6.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
   Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
 
2
   Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
3
3
 
4
4
   This program is free software; you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
1174
1174
  LEX_STRING path;
1175
1175
  File_parser *parser;
1176
1176
  LEX_STRING save_db;
 
1177
  sql_digest_state *parent_digest= thd->m_digest;
1177
1178
  PSI_statement_locker *parent_locker= thd->m_statement_psi;
1178
1179
 
1179
1180
  DBUG_ENTER("Table_triggers_list::check_n_load");
1410
1411
 
1411
1412
        Deprecated_trigger_syntax_handler error_handler;
1412
1413
        thd->push_internal_handler(&error_handler);
 
1414
        thd->m_digest= NULL;
1413
1415
        thd->m_statement_psi= NULL;
1414
1416
        bool parse_error= parse_sql(thd, & parser_state, creation_ctx);
 
1417
        thd->m_digest= parent_digest;
1415
1418
        thd->m_statement_psi= parent_locker;
1416
1419
        thd->pop_internal_handler();
1417
1420