|
1 | | -/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. |
| 1 | +/* Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. |
2 | 2 |
|
3 | 3 | This program is free software; you can redistribute it and/or modify |
4 | 4 | it under the terms of the GNU General Public License as published by |
|
10 | 10 | GNU General Public License for more details. |
11 | 11 |
|
12 | 12 | You should have received a copy of the GNU General Public License |
13 | | - along with this program; if not, write to the Free Software |
14 | | - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
| 13 | + along with this program; if not, write to the Free Software Foundation, |
| 14 | + Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */ |
15 | 15 |
|
16 | 16 | /** @file handler.cc |
17 | 17 |
|
@@ -405,6 +405,7 @@ int ha_init_errors(void) |
405 | 405 | SETMSG(HA_ERR_INDEX_COL_TOO_LONG, ER_DEFAULT(ER_INDEX_COLUMN_TOO_LONG)); |
406 | 406 | SETMSG(HA_ERR_INDEX_CORRUPT, ER_DEFAULT(ER_INDEX_CORRUPT)); |
407 | 407 | SETMSG(HA_FTS_INVALID_DOCID, "Invalid InnoDB FTS Doc ID"); |
| 408 | + SETMSG(HA_ERR_TABLE_IN_FK_CHECK, ER_DEFAULT(ER_TABLE_IN_FK_CHECK)); |
408 | 409 |
|
409 | 410 | /* Register the error messages for use with my_error(). */ |
410 | 411 | return my_error_register(get_handler_errmsgs, HA_ERR_FIRST, HA_ERR_LAST); |
@@ -3112,6 +3113,9 @@ void handler::print_error(int error, myf errflag) |
3112 | 3113 | case HA_ERR_UNDO_REC_TOO_BIG: |
3113 | 3114 | textno= ER_UNDO_RECORD_TOO_BIG; |
3114 | 3115 | break; |
| 3116 | + case HA_ERR_TABLE_IN_FK_CHECK: |
| 3117 | + textno= ER_TABLE_IN_FK_CHECK; |
| 3118 | + break; |
3115 | 3119 | default: |
3116 | 3120 | { |
3117 | 3121 | /* The error was "unknown" to this function. |
|
0 commit comments