/*
Copyright 2020 <盏一 w@hidva.com>
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.
*/
pub const ERRCODE_UNDEFINED_DATABASE: &str = "3D000";
pub const ERRCODE_CONNECTION_FAILURE: &str = "08006";
pub const ERRCODE_PROTOCOL_VIOLATION: &str = "08P01";
pub const ERRCODE_ADMIN_SHUTDOWN: &str = "57P01";
pub const ERRCODE_SYNTAX_ERROR: &str = "42601";
pub const ERRCODE_INTERNAL_ERROR: &str = "XX000";
pub const ERRCODE_FEATURE_NOT_SUPPORTED: &str = "0A000";
pub const ERRCODE_UNDEFINED_SCHEMA: &str = "3F000";
pub const ERRCODE_UNDEFINED_OBJECT: &str = "42704";
pub const ERRCODE_INVALID_PARAMETER_VALUE: &str = "22023";
pub const ERRCODE_UNDEFINED_FUNCTION: &str = "42883";
pub const ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE: &str = "22003";
pub const ERRCODE_DIVISION_BY_ZERO: &str = "22012";
pub const ERRCODE_IN_FAILED_SQL_TRANSACTION: &str = "25P02";
pub const ERRCODE_ACTIVE_SQL_TRANSACTION: &str = "25001";
pub const ERRCODE_NO_ACTIVE_SQL_TRANSACTION: &str = "25P01";
pub const ERRCODE_UNDEFINED_TABLE: &str = "42P01";
pub const ERRCODE_BAD_COPY_FILE_FORMAT: &str = "22P04";
pub const ERRCODE_NOT_NULL_VIOLATION: &str = "23502";
