#
# 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
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}''
InvalidColumn=Error 1059(42000): Illegal column name definition
UnknownCharacterSet=Error 1115(42000): Unknown character set ''{0}''
invalidVariableArg=Error 1231(42000): Variable ''{0}'' can't be set to the value of ''{1}''

# 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}''
