#
# Copyright 2021 DataCanvas
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# MySQL compatible errors
WriteReadError=Error 1 (HY000): Can not create/write to file ''{0}'' (Errcode: 13 - Permission denied)
AccessError=Error 13 (HY000): Can not get stat of ''{0}'' (Errcode: ''{1}'' - Permission denied)
OperatorDenied=Error 1142 (42000): ''{0}'' command denied to user ''{1}''@''{2}'' for table ''{3}''
CreateUserDenied=Error 1227 (42000): Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation
InvalidDefaultValue=Error 1067 (42000): Invalid default value for ''{0}''
NoDbGrantsForRevoke=Error 1141 (42000): There is no such grant defined for user ''{0}'' on host ''{1}''
NoTableGrantsForRevoke=Error 1147 (42000): There is no such grant defined for user ''{0}'' on host ''{1}'' on table ''{2}''
CreateUserFailed=Error 1396 (HY000): Operation CREATE USER failed for ''{0}''@''{1}''
DropUserFailed=Error 1396 (HY000): Operation DROP USER failed for ''{0}''@''{1}''
AlterUserFailed=Error 1396 (HY000): Operation ALTER USER failed for ''{0}''@''{1}''
NoMatchingRowForUser=Error 1133 (42000): Can't find any matching row in the user table
AccessDeniedToUser=Error 1045(28000): Access denied for user ''{0}''@''{1}''
AccessDeniedToDb=Error 1044(42000): Access denied for user ''{0}''@''{1}'' to database ''{2}''
UnknownTable=Error 1051(42S02): Unknown table ''{0}''
UnknownCharacterSet=Error 1115(42000): Unknown character set ''{0}''
invalidVariableArg=Error 1231(42000): Variable ''{0}'' can not be set to the value ''{1}''
InvalidColumn=Error 1059(42000): Illegal column name definition
IncorrectArgType=Error 1232(42000): Incorrect argument type to variable ''{0}''
TransChangeError=Error 1568(25001): Transaction characteristics can't be changed while a transaction is in progress
exportFileExists=Error 1086(HY000): File ''{0}'' already exists
LoadDataError=Error 1366(HY000): Incorrect value
DuplicateKey=Error 1062(23000): Duplicate entry for key 'PRIMARY'
fieldSeparatorError=Error 1083(42000): Field separator argument is not what is expected; check the manual
TableNotExists=Error 1146(42S02): Table ''{0}'' does not exist
DuplicateColumn=Error 1060 (42S21): Duplicate column names are not allowed in table definition
IllegalArgumentException=Error 1105 (HY000): Check illegalArgumentException

# Other errors
PrimaryKeyRequired=Error 1001 (45000): Primary keys are required in table ''{0}''
PrimaryKeyNotExist=Error 1002 (45000): Specified primary key ''{0}'' does not exist in table ''{1}''
NotEnoughRegion=Error 9001 (45000): Not enough regions is created
MultiAutoInc=ERROR 9001 (45000): table definition illegal, multi auto_increment column
DropColumnError=Error 8200 (HY000): can't drop column name with composite index covered or Primary Key covered now
addColumnPrimaryError=ERROR 8200 (HY000): unsupported add column ''{0}'' constraint PRIMARY KEY when altering ''{1}''
addColumnAutoIncError=ERROR 8200 (HY000): unsupported add column ''{0}'' constraint AUTO_INCREMENT when altering ''{1}''
