mirror of
https://github.com/MariaDB/server.git
synced 2025-01-26 00:34:18 +01:00
ad08138798
Post-merge fix: Pass the right parameter type to open_and_lock_tables. Passing FALSE ensures that derived table handling is disabled, truncate only operates on base tables. sql/sql_truncate.cc: Pass FALSE to disable derived table handling. This was probably reminiscent of the use of open_n_lock_single_table, which can't be used as in some cases (e.g. merge) more than one table will be opened. sql/sql_truncate.h: TABLE_LIST is a struct.
23 lines
898 B
C++
23 lines
898 B
C++
#ifndef SQL_TRUNCATE_INCLUDED
|
|
#define SQL_TRUNCATE_INCLUDED
|
|
/* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; version 2 of the License.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
|
|
|
class THD;
|
|
struct TABLE_LIST;
|
|
|
|
bool mysql_truncate_table(THD *thd, TABLE_LIST *table_ref);
|
|
|
|
#endif
|