1 /* Copyright (C) 2008-2020 Kentoku Shiba
2    Copyright (C) 2019-2020 MariaDB corp
3 
4   This program is free software; you can redistribute it and/or modify
5   it under the terms of the GNU General Public License as published by
6   the Free Software Foundation; version 2 of the License.
7 
8   This program is distributed in the hope that it will be useful,
9   but WITHOUT ANY WARRANTY; without even the implied warranty of
10   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11   GNU General Public License for more details.
12 
13   You should have received a copy of the GNU General Public License
14   along with this program; if not, write to the Free Software
15   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */
16 
17 #define ER_SPIDER_INVALID_CONNECT_INFO_NUM 12501
18 #define ER_SPIDER_INVALID_CONNECT_INFO_STR "The connect info '%-.64s' is invalid"
19 #define ER_SPIDER_INVALID_CONNECT_INFO_TOO_LONG_NUM 12502
20 #define ER_SPIDER_INVALID_CONNECT_INFO_TOO_LONG_STR "The connect info '%-.64s' for %s is too long"
21 #define ER_SPIDER_INVALID_UDF_PARAM_NUM 12503
22 #define ER_SPIDER_INVALID_UDF_PARAM_STR "The UDF parameter '%-.64s' is invalid"
23 #define ER_SPIDER_DIFFERENT_LINK_COUNT_NUM 12504
24 #define ER_SPIDER_DIFFERENT_LINK_COUNT_STR "Different multiple table link parameter's count"
25 #define ER_SPIDER_UDF_PARAM_TOO_LONG_NUM 12505
26 #define ER_SPIDER_UDF_PARAM_TOO_LONG_STR "The UDF parameter '%-.64s' is too long"
27 #define ER_SPIDER_UDF_PARAM_REQIRED_NUM 12506
28 #define ER_SPIDER_UDF_PARAM_REQIRED_STR "The UDF parameter '%-.64s' is required"
29 #define ER_SPIDER_UDF_CANT_USE_IF_OPEN_TABLE_NUM 12507
30 #define ER_SPIDER_UDF_CANT_USE_IF_OPEN_TABLE_STR "This UDF can't execute if other tables are opened"
31 #define ER_SPIDER_UDF_CANT_USE_IF_OPEN_TABLE_STR_WITH_NUM "This UDF can't execute if other tables are opened '%s'=%lld"
32 #define ER_SPIDER_UDF_CANT_USE_IF_OPEN_TABLE_STR_WITH_PTR "This UDF can't execute if other tables are opened '%s'=%p"
33 #define ER_SPIDER_UDF_PING_TABLE_NO_SERVER_ID_NUM 12508
34 #define ER_SPIDER_UDF_PING_TABLE_NO_SERVER_ID_STR "Current server_id is not exist"
35 #define ER_SPIDER_UDF_PING_TABLE_DIFFERENT_MON_NUM 12509
36 #define ER_SPIDER_UDF_PING_TABLE_DIFFERENT_MON_STR "Monitor count is different"
37 #define ER_SPIDER_LINK_MON_OK_NUM 12510
38 #define ER_SPIDER_LINK_MON_OK_STR "Table '%s.%s' get a problem, but mon is OK"
39 #define ER_SPIDER_LINK_MON_NG_NUM 12511
40 #define ER_SPIDER_LINK_MON_NG_STR "Table '%s.%s' get a problem"
41 #define ER_SPIDER_LINK_MON_DRAW_FEW_MON_NUM 12512
42 #define ER_SPIDER_LINK_MON_DRAW_FEW_MON_STR "Can not judge by enough monitor for table '%s.%s'"
43 #define ER_SPIDER_LINK_MON_DRAW_NUM 12513
44 #define ER_SPIDER_LINK_MON_DRAW_STR "Can not judge status for table '%s.%s'"
45 #define ER_SPIDER_ALL_LINKS_FAILED_NUM 12514
46 #define ER_SPIDER_ALL_LINKS_FAILED_STR "All links of '%s.%s' are failed"
47 #define ER_SPIDER_TMP_TABLE_MON_NUM 12515
48 #define ER_SPIDER_TMP_TABLE_MON_STR "Can't use monitor by temporary table"
49 #define ER_SPIDER_MON_AT_ALTER_TABLE_NUM 12516
50 #define ER_SPIDER_MON_AT_ALTER_TABLE_STR "Got an error in alter or drop table"
51 #define ER_SPIDER_BLANK_UDF_ARGUMENT_NUM 12517
52 #define ER_SPIDER_BLANK_UDF_ARGUMENT_STR "The UDF no.%d argument can't be blank"
53 #define ER_SPIDER_READ_ONLY_NUM 12518
54 #define ER_SPIDER_READ_ONLY_STR "Table '%s.%s' is read only"
55 #define ER_SPIDER_LINK_IS_FAILOVER_NUM 12519
56 #define ER_SPIDER_LINK_IS_FAILOVER_STR "A link is fail-overed"
57 #define ER_SPIDER_AUTOINC_VAL_IS_DIFFERENT_NUM 12520
58 #define ER_SPIDER_AUTOINC_VAL_IS_DIFFERENT_STR "Binlog's auto-inc value is probably different from linked table's auto-inc value"
59 #define ER_SPIDER_SQL_WRAPPER_IS_INVALID_NUM 12521
60 #define ER_SPIDER_SQL_WRAPPER_IS_INVALID_STR "Can't use wrapper '%s' for SQL connection"
61 #define ER_SPIDER_NOSQL_WRAPPER_IS_INVALID_NUM 12522
62 #define ER_SPIDER_NOSQL_WRAPPER_IS_INVALID_STR "Can't use wrapper '%s' for NOSQL connection"
63 #define ER_SPIDER_REQUEST_KEY_NUM 12523
64 #define ER_SPIDER_REQUEST_KEY_STR "Request key not found"
65 #define ER_SPIDER_CANT_OPEN_SYS_TABLE_NUM 12524
66 #define ER_SPIDER_CANT_OPEN_SYS_TABLE_STR "Can't open system table %s.%s"
67 #define ER_SPIDER_LINK_MON_JUST_NG_NUM 12525
68 #define ER_SPIDER_LINK_MON_JUST_NG_STR "Table '%s.%s' just got a problem"
69 #define ER_SPIDER_INVALID_CONNECT_INFO_START_WITH_NUM_NUM 12526
70 #define ER_SPIDER_INVALID_CONNECT_INFO_START_WITH_NUM_STR "The connect info '%-.64s' for %s cannot start with number"
71 #define ER_SPIDER_INVALID_CONNECT_INFO_SAME_NUM 12527
72 #define ER_SPIDER_INVALID_CONNECT_INFO_SAME_STR "The connect info '%-.64s' for %s cannot use same name in same table"
73 
74 #define ER_SPIDER_CANT_USE_BOTH_INNER_XA_AND_SNAPSHOT_NUM 12601
75 #define ER_SPIDER_CANT_USE_BOTH_INNER_XA_AND_SNAPSHOT_STR "Can't use both spider_use_consistent_snapshot = 1 and spider_internal_xa = 1"
76 #define ER_SPIDER_XA_LOCKED_NUM 12602
77 #define ER_SPIDER_XA_LOCKED_STR "This xid is now locked"
78 #define ER_SPIDER_XA_NOT_PREPARED_NUM 12603
79 #define ER_SPIDER_XA_NOT_PREPARED_STR "This xid is not prepared"
80 #define ER_SPIDER_XA_PREPARED_NUM 12604
81 #define ER_SPIDER_XA_PREPARED_STR "This xid is prepared"
82 #define ER_SPIDER_XA_EXISTS_NUM 12605
83 #define ER_SPIDER_XA_EXISTS_STR "This xid is already exist"
84 #define ER_SPIDER_XA_MEMBER_EXISTS_NUM 12606
85 #define ER_SPIDER_XA_MEMBER_EXISTS_STR "This xid member is already exist"
86 #define ER_SPIDER_XA_NOT_EXISTS_NUM 12607
87 #define ER_SPIDER_XA_NOT_EXISTS_STR "This xid is not exist"
88 #define ER_SPIDER_XA_MEMBER_NOT_EXISTS_NUM 12608
89 #define ER_SPIDER_XA_MEMBER_NOT_EXISTS_STR "This xid member is not exist"
90 #define ER_SPIDER_SYS_TABLE_VERSION_NUM 12609
91 #define ER_SPIDER_SYS_TABLE_VERSION_STR "System table %s is different version"
92 #define ER_SPIDER_WRONG_CHARACTER_IN_NAME_NUM 12611
93 #define ER_SPIDER_WRONG_CHARACTER_IN_NAME_STR "Wrong character in name string"
94 #define ER_SPIDER_LOW_MEM_READ_PREV_NUM 12621
95 #define ER_SPIDER_LOW_MEM_READ_PREV_STR "Can't use this operation at low mem read mode"
96 #define ER_SPIDER_ALTER_BEFORE_UNLOCK_NUM 12622
97 #define ER_SPIDER_ALTER_BEFORE_UNLOCK_STR "Can't use this operation before executing 'unlock tables'"
98 #define ER_SPIDER_REMOTE_SERVER_GONE_AWAY_NUM 12701
99 #define ER_SPIDER_REMOTE_SERVER_GONE_AWAY_STR "Remote MySQL server has gone away"
100 #define ER_SPIDER_REMOTE_SERVER_GONE_AWAY_LEN (sizeof(ER_SPIDER_REMOTE_SERVER_GONE_AWAY_STR) - 1)
101 #define ER_SPIDER_REMOTE_TABLE_NOT_FOUND_NUM 12702
102 #define ER_SPIDER_REMOTE_TABLE_NOT_FOUND_STR "Remote table '%s.%s' is not found"
103 #define ER_SPIDER_UDF_TMP_TABLE_NOT_FOUND_NUM 12703
104 #define ER_SPIDER_UDF_TMP_TABLE_NOT_FOUND_STR "Temporary table '%s.%s' is not found"
105 #define ER_SPIDER_UDF_COPY_TABLE_SRC_NOT_FOUND_NUM 12704
106 #define ER_SPIDER_UDF_COPY_TABLE_SRC_NOT_FOUND_STR "Source table is not found"
107 #define ER_SPIDER_UDF_COPY_TABLE_DST_NOT_FOUND_NUM 12705
108 #define ER_SPIDER_UDF_COPY_TABLE_DST_NOT_FOUND_STR "Destination table is not found"
109 #define ER_SPIDER_UDF_COPY_TABLE_SRC_NG_STATUS_NUM 12706
110 #define ER_SPIDER_UDF_COPY_TABLE_SRC_NG_STATUS_STR "Source table is NG status"
111 #define ER_SPIDER_UDF_COPY_TABLE_DST_NG_STATUS_NUM 12707
112 #define ER_SPIDER_UDF_COPY_TABLE_DST_NG_STATUS_STR "Destination table is NG status"
113 #define ER_SPIDER_UDF_CANT_OPEN_TABLE_NUM 12708
114 #define ER_SPIDER_UDF_CANT_OPEN_TABLE_STR "Can't open table %s.%s"
115 #define ER_SPIDER_UDF_COPY_TABLE_NEED_PK_NUM 12709
116 #define ER_SPIDER_UDF_COPY_TABLE_NEED_PK_STR "Table %s.%s needs PK for copying"
117 #define ER_SPIDER_INVALID_REMOTE_TABLE_INFO_NUM 12710
118 #define ER_SPIDER_INVALID_REMOTE_TABLE_INFO_STR "Invalid information from remote table '%s.%s'"
119 #define ER_SPIDER_HS_STR "Error from HS %d %s"
120 #define ER_SPIDER_HS_NUM 12711
121 #define ER_SPIDER_ORACLE_STR "Error from Oracle %d %d %s"
122 #define ER_SPIDER_ORACLE_NUM 12712
123 #define ER_SPIDER_ORACLE_ERR "Oracle error"
124 #define ER_SPIDER_DATASOURCE_STR "Error from %s %d %s %s"
125 #define ER_SPIDER_DATASOURCE_NUM 12712
126 #define ER_SPIDER_CON_COUNT_ERROR 12713
127 #define ER_SPIDER_CON_COUNT_ERROR_STR "Too many connections between spider and remote"
128 #define ER_SPIDER_TABLE_OPEN_TIMEOUT_NUM 12714
129 #define ER_SPIDER_TABLE_OPEN_TIMEOUT_STR "Table %s.%s open timeout"
130 #define ER_SPIDER_INFINITE_LOOP_NUM 12719
131 #define ER_SPIDER_INFINITE_LOOP_STR "An infinite loop is detected when opening table %s.%s"
132 #define ER_SPIDER_SAME_SERVER_LINK_NUM 12720
133 #define ER_SPIDER_SAME_SERVER_LINK_STR1 "Host:%s and Socket:%s aim self server. Please change spider_same_server_link parameter if this link is required."
134 #define ER_SPIDER_SAME_SERVER_LINK_STR2 "Host:%s and Port:%ld aim self server. Please change spider_same_server_link parameter if this link is required."
135 #define ER_SPIDER_CANT_NUM 12721
136 #define ER_SPIDER_CANT_STR1 "Can't %s%d"
137 #define ER_SPIDER_COND_SKIP_NUM 12801
138 
139 #define ER_SPIDER_UNKNOWN_NUM 12500
140 #define ER_SPIDER_UNKNOWN_STR "unknown"
141 #define ER_SPIDER_UNKNOWN_LEN (sizeof(ER_SPIDER_UNKNOWN_STR) - 1)
142