diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 8ff4d58b..fc02751c 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Steven Fackler "] [dependencies] -phf_codegen = "0.8" +phf_codegen = "0.9" regex = "1.0" marksman_escape = "0.1" linked-hash-map = "0.5" diff --git a/tokio-postgres/Cargo.toml b/tokio-postgres/Cargo.toml index fa1b5039..3a1537a8 100644 --- a/tokio-postgres/Cargo.toml +++ b/tokio-postgres/Cargo.toml @@ -47,7 +47,7 @@ log = "0.4" parking_lot = "0.11" percent-encoding = "2.0" pin-project-lite = "0.2" -phf = "0.8" +phf = "0.9" postgres-protocol = { version = "0.6.1", path = "../postgres-protocol" } postgres-types = { version = "0.2.1", path = "../postgres-types" } socket2 = "0.4" diff --git a/tokio-postgres/src/error/sqlstate.rs b/tokio-postgres/src/error/sqlstate.rs index 125124d1..1996d9b1 100644 --- a/tokio-postgres/src/error/sqlstate.rs +++ b/tokio-postgres/src/error/sqlstate.rs @@ -1340,319 +1340,319 @@ enum Inner { #[rustfmt::skip] static SQLSTATE_MAP: phf::Map<&'static str, SqlState> = ::phf::Map { - key: 732231254413039614, + key: 12913932095322966823, disps: ::phf::Slice::Static(&[ - (0, 6), - (0, 0), - (0, 218), - (0, 11), - (0, 31), - (0, 91), - (0, 55), - (0, 77), - (0, 72), - (0, 1), - (0, 73), - (1, 159), - (4, 4), + (0, 12), (0, 18), - (2, 100), - (0, 19), - (0, 16), - (0, 22), - (0, 51), + (0, 25), + (0, 109), + (0, 147), + (0, 74), (0, 0), + (7, 117), + (5, 221), + (0, 26), + (1, 45), + (0, 93), + (0, 25), + (0, 61), + (1, 221), + (10, 17), + (0, 77), + (2, 3), + (0, 216), (0, 0), - (1, 2), - (2, 177), - (0, 10), - (1, 192), - (0, 0), - (5, 245), - (0, 106), - (6, 243), - (47, 195), - (0, 146), - (4, 154), + (0, 1), + (1, 168), + (0, 64), (0, 2), - (4, 78), - (0, 196), - (0, 8), - (2, 146), - (0, 15), - (0, 170), - (0, 5), - (10, 18), - (0, 30), - (0, 33), - (0, 2), - (0, 0), - (47, 181), - (0, 144), - (39, 231), - (39, 173), - (0, 57), (0, 7), - (1, 154), + (1, 37), + (0, 83), + (3, 24), + (0, 0), + (0, 109), + (18, 9), + (1, 230), + (0, 0), + (0, 4), + (0, 171), + (0, 0), + (34, 97), + (2, 126), + (44, 49), + (5, 182), + (0, 1), + (0, 1), + (0, 71), + (0, 4), + (5, 164), + (0, 0), + (0, 96), + (13, 58), + (0, 58), + (0, 242), + (0, 72), + (16, 53), ]), entries: ::phf::Slice::Static(&[ - ("22P04", SqlState::BAD_COPY_FILE_FORMAT), - ("39001", SqlState::E_R_I_E_INVALID_SQLSTATE_RETURNED), - ("2201F", SqlState::INVALID_ARGUMENT_FOR_POWER_FUNCTION), - ("54000", SqlState::PROGRAM_LIMIT_EXCEEDED), - ("2200T", SqlState::INVALID_XML_PROCESSING_INSTRUCTION), - ("01000", SqlState::WARNING), - ("02000", SqlState::NO_DATA), - ("40003", SqlState::T_R_STATEMENT_COMPLETION_UNKNOWN), - ("42702", SqlState::AMBIGUOUS_COLUMN), - ("HV000", SqlState::FDW_ERROR), - ("2203A", SqlState::SQL_JSON_MEMBER_NOT_FOUND), - ("22021", SqlState::CHARACTER_NOT_IN_REPERTOIRE), - ("HV006", SqlState::FDW_INVALID_DATA_TYPE_DESCRIPTORS), - ("40000", SqlState::TRANSACTION_ROLLBACK), - ("57P01", SqlState::ADMIN_SHUTDOWN), ("22034", SqlState::MORE_THAN_ONE_SQL_JSON_ITEM), - ("54023", SqlState::TOO_MANY_ARGUMENTS), - ("22027", SqlState::TRIM_ERROR), - ("2203C", SqlState::SQL_JSON_OBJECT_NOT_FOUND), - ("22P06", SqlState::NONSTANDARD_USE_OF_ESCAPE_CHARACTER), - ("72000", SqlState::SNAPSHOT_TOO_OLD), - ("25004", SqlState::INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION), - ("2BP01", SqlState::DEPENDENT_OBJECTS_STILL_EXIST), - ("42P11", SqlState::INVALID_CURSOR_DEFINITION), - ("HV00J", SqlState::FDW_OPTION_NAME_NOT_FOUND), - ("42804", SqlState::DATATYPE_MISMATCH), - ("39004", SqlState::E_R_I_E_NULL_VALUE_NOT_ALLOWED), + ("40P01", SqlState::T_R_DEADLOCK_DETECTED), ("42703", SqlState::UNDEFINED_COLUMN), - ("2203E", SqlState::TOO_MANY_JSON_OBJECT_MEMBERS), - ("42P12", SqlState::INVALID_DATABASE_DEFINITION), - ("23503", SqlState::FOREIGN_KEY_VIOLATION), - ("25003", SqlState::INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION), - ("22P03", SqlState::INVALID_BINARY_REPRESENTATION), - ("40002", SqlState::T_R_INTEGRITY_CONSTRAINT_VIOLATION), - ("58030", SqlState::IO_ERROR), - ("01004", SqlState::WARNING_STRING_DATA_RIGHT_TRUNCATION), - ("22019", SqlState::INVALID_ESCAPE_CHARACTER), - ("42P20", SqlState::WINDOWING_ERROR), - ("3D000", SqlState::INVALID_CATALOG_NAME), - ("22001", SqlState::STRING_DATA_RIGHT_TRUNCATION), - ("F0000", SqlState::CONFIG_FILE_ERROR), - ("25005", SqlState::NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION), - ("42883", SqlState::UNDEFINED_FUNCTION), - ("42P06", SqlState::DUPLICATE_SCHEMA), - ("42P17", SqlState::INVALID_OBJECT_DEFINITION), - ("HV002", SqlState::FDW_DYNAMIC_PARAMETER_VALUE_NEEDED), - ("0F001", SqlState::L_E_INVALID_SPECIFICATION), - ("57014", SqlState::QUERY_CANCELED), - ("22033", SqlState::INVALID_SQL_JSON_SUBSCRIPT), - ("2F004", SqlState::S_R_E_READING_SQL_DATA_NOT_PERMITTED), - ("42611", SqlState::INVALID_COLUMN_DEFINITION), - ("42939", SqlState::RESERVED_NAME), - ("0P000", SqlState::INVALID_ROLE_SPECIFICATION), - ("53200", SqlState::OUT_OF_MEMORY), - ("42809", SqlState::WRONG_OBJECT_TYPE), - ("2202H", SqlState::INVALID_TABLESAMPLE_ARGUMENT), - ("42P16", SqlState::INVALID_TABLE_DEFINITION), - ("24000", SqlState::INVALID_CURSOR_STATE), - ("42P13", SqlState::INVALID_FUNCTION_DEFINITION), - ("22007", SqlState::INVALID_DATETIME_FORMAT), - ("2D000", SqlState::INVALID_TRANSACTION_TERMINATION), - ("53100", SqlState::DISK_FULL), - ("P0003", SqlState::TOO_MANY_ROWS), - ("22016", SqlState::INVALID_ARGUMENT_FOR_NTH_VALUE), - ("2F002", SqlState::S_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED), - ("42830", SqlState::INVALID_FOREIGN_KEY), - ("27000", SqlState::TRIGGERED_DATA_CHANGE_VIOLATION), - ("0Z002", SqlState::STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER), - ("53000", SqlState::INSUFFICIENT_RESOURCES), - ("23502", SqlState::NOT_NULL_VIOLATION), - ("XX000", SqlState::INTERNAL_ERROR), - ("58P01", SqlState::UNDEFINED_FILE), - ("42601", SqlState::SYNTAX_ERROR), - ("02001", SqlState::NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED), - ("42P09", SqlState::AMBIGUOUS_ALIAS), - ("22P02", SqlState::INVALID_TEXT_REPRESENTATION), - ("55P02", SqlState::CANT_CHANGE_RUNTIME_PARAM), - ("2F003", SqlState::S_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED), - ("53300", SqlState::TOO_MANY_CONNECTIONS), - ("25P02", SqlState::IN_FAILED_SQL_TRANSACTION), - ("42P03", SqlState::DUPLICATE_CURSOR), - ("XX002", SqlState::INDEX_CORRUPTED), - ("22010", SqlState::INVALID_INDICATOR_PARAMETER_VALUE), - ("01006", SqlState::WARNING_PRIVILEGE_NOT_REVOKED), - ("3B001", SqlState::S_E_INVALID_SPECIFICATION), - ("42P21", SqlState::COLLATION_MISMATCH), ("42P07", SqlState::DUPLICATE_TABLE), - ("22013", SqlState::INVALID_PRECEDING_OR_FOLLOWING_SIZE), - ("0Z000", SqlState::DIAGNOSTICS_EXCEPTION), ("55P04", SqlState::UNSAFE_NEW_ENUM_VALUE_USAGE), - ("42000", SqlState::SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION), - ("XX001", SqlState::DATA_CORRUPTED), - ("25008", SqlState::HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL), - ("HV00M", SqlState::FDW_UNABLE_TO_CREATE_REPLY), - ("39000", SqlState::EXTERNAL_ROUTINE_INVOCATION_EXCEPTION), - ("22032", SqlState::INVALID_JSON_TEXT), ("25006", SqlState::READ_ONLY_SQL_TRANSACTION), - ("01P01", SqlState::WARNING_DEPRECATED_FEATURE), - ("42725", SqlState::AMBIGUOUS_FUNCTION), - ("42602", SqlState::INVALID_NAME), - ("2201W", SqlState::INVALID_ROW_COUNT_IN_LIMIT_CLAUSE), - ("42P05", SqlState::DUPLICATE_PSTATEMENT), + ("2201X", SqlState::INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE), ("HV021", SqlState::FDW_INCONSISTENT_DESCRIPTOR_INFORMATION), - ("57P03", SqlState::CANNOT_CONNECT_NOW), - ("58P02", SqlState::DUPLICATE_FILE), - ("42P22", SqlState::INDETERMINATE_COLLATION), - ("0B000", SqlState::INVALID_TRANSACTION_INITIATION), - ("0100C", SqlState::WARNING_DYNAMIC_RESULT_SETS_RETURNED), - ("22015", SqlState::INTERVAL_FIELD_OVERFLOW), - ("2200S", SqlState::INVALID_XML_COMMENT), - ("2200M", SqlState::INVALID_XML_DOCUMENT), - ("HV001", SqlState::FDW_OUT_OF_MEMORY), - ("25001", SqlState::ACTIVE_SQL_TRANSACTION), - ("22002", SqlState::NULL_VALUE_NO_INDICATOR_PARAMETER), + ("42P02", SqlState::UNDEFINED_PARAMETER), + ("HV00C", SqlState::FDW_INVALID_OPTION_INDEX), + ("08003", SqlState::CONNECTION_DOES_NOT_EXIST), + ("02000", SqlState::NO_DATA), + ("24000", SqlState::INVALID_CURSOR_STATE), + ("2203C", SqlState::SQL_JSON_OBJECT_NOT_FOUND), + ("42601", SqlState::SYNTAX_ERROR), + ("22012", SqlState::DIVISION_BY_ZERO), + ("2203B", SqlState::SQL_JSON_NUMBER_NOT_FOUND), + ("P0003", SqlState::TOO_MANY_ROWS), + ("57P04", SqlState::DATABASE_DROPPED), + ("27000", SqlState::TRIGGERED_DATA_CHANGE_VIOLATION), + ("42P08", SqlState::AMBIGUOUS_PARAMETER), + ("3F000", SqlState::INVALID_SCHEMA_NAME), + ("42883", SqlState::UNDEFINED_FUNCTION), + ("20000", SqlState::CASE_NOT_FOUND), + ("2200G", SqlState::MOST_SPECIFIC_TYPE_MISMATCH), + ("42939", SqlState::RESERVED_NAME), + ("42602", SqlState::INVALID_NAME), + ("HV004", SqlState::FDW_INVALID_DATA_TYPE), + ("HV007", SqlState::FDW_INVALID_COLUMN_NAME), ("2F005", SqlState::S_R_E_FUNCTION_EXECUTED_NO_RETURN_STATEMENT), - ("428C9", SqlState::GENERATED_ALWAYS), - ("25P01", SqlState::NO_ACTIVE_SQL_TRANSACTION), - ("HV091", SqlState::FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER), - ("2200C", SqlState::INVALID_USE_OF_ESCAPE_CHARACTER), - ("HV008", SqlState::FDW_INVALID_COLUMN_NUMBER), - ("2200F", SqlState::ZERO_LENGTH_CHARACTER_STRING), - ("54001", SqlState::STATEMENT_TOO_COMPLEX), + ("22030", SqlState::DUPLICATE_JSON_OBJECT_KEY_VALUE), + ("53100", SqlState::DISK_FULL), + ("HV005", SqlState::FDW_COLUMN_NAME_NOT_FOUND), + ("2200H", SqlState::SEQUENCE_GENERATOR_LIMIT_EXCEEDED), + ("2201W", SqlState::INVALID_ROW_COUNT_IN_LIMIT_CLAUSE), ("42712", SqlState::DUPLICATE_ALIAS), - ("HV00A", SqlState::FDW_INVALID_STRING_FORMAT), - ("42710", SqlState::DUPLICATE_OBJECT), - ("54011", SqlState::TOO_MANY_COLUMNS), - ("42P19", SqlState::INVALID_RECURSION), - ("42501", SqlState::INSUFFICIENT_PRIVILEGE), + ("42622", SqlState::NAME_TOO_LONG), + ("22035", SqlState::NO_SQL_JSON_ITEM), + ("42P18", SqlState::INDETERMINATE_DATATYPE), + ("39P01", SqlState::E_R_I_E_TRIGGER_PROTOCOL_VIOLATED), + ("01000", SqlState::WARNING), + ("2F004", SqlState::S_R_E_READING_SQL_DATA_NOT_PERMITTED), + ("22023", SqlState::INVALID_PARAMETER_VALUE), + ("2200T", SqlState::INVALID_XML_PROCESSING_INSTRUCTION), + ("22013", SqlState::INVALID_PRECEDING_OR_FOLLOWING_SIZE), + ("57P01", SqlState::ADMIN_SHUTDOWN), + ("2202E", SqlState::ARRAY_ELEMENT_ERROR), + ("22018", SqlState::INVALID_CHARACTER_VALUE_FOR_CAST), + ("0F000", SqlState::LOCATOR_EXCEPTION), + ("2D000", SqlState::INVALID_TRANSACTION_TERMINATION), + ("HV009", SqlState::FDW_INVALID_USE_OF_NULL_POINTER), ("57000", SqlState::OPERATOR_INTERVENTION), ("25002", SqlState::BRANCH_TRANSACTION_ALREADY_ACTIVE), - ("22039", SqlState::SQL_JSON_ARRAY_NOT_FOUND), - ("P0002", SqlState::NO_DATA_FOUND), - ("2201G", SqlState::INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION), - ("22012", SqlState::DIVISION_BY_ZERO), - ("42P10", SqlState::INVALID_COLUMN_REFERENCE), - ("HV00B", SqlState::FDW_INVALID_HANDLE), - ("38003", SqlState::E_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED), - ("25P03", SqlState::IDLE_IN_TRANSACTION_SESSION_TIMEOUT), - ("F0001", SqlState::LOCK_FILE_EXISTS), - ("08001", SqlState::SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION), - ("2203D", SqlState::TOO_MANY_JSON_ARRAY_ELEMENTS), - ("P0000", SqlState::PLPGSQL_ERROR), - ("28000", SqlState::INVALID_AUTHORIZATION_SPECIFICATION), - ("2200D", SqlState::INVALID_ESCAPE_OCTET), - ("55P03", SqlState::LOCK_NOT_AVAILABLE), - ("23505", SqlState::UNIQUE_VIOLATION), - ("39P01", SqlState::E_R_I_E_TRIGGER_PROTOCOL_VIOLATED), - ("44000", SqlState::WITH_CHECK_OPTION_VIOLATION), - ("22030", SqlState::DUPLICATE_JSON_OBJECT_KEY_VALUE), - ("P0004", SqlState::ASSERT_FAILURE), - ("2200G", SqlState::MOST_SPECIFIC_TYPE_MISMATCH), - ("2F000", SqlState::SQL_ROUTINE_EXCEPTION), - ("26000", SqlState::INVALID_SQL_STATEMENT_NAME), - ("2202G", SqlState::INVALID_TABLESAMPLE_REPEAT), - ("22003", SqlState::NUMERIC_VALUE_OUT_OF_RANGE), - ("21000", SqlState::CARDINALITY_VIOLATION), - ("0A000", SqlState::FEATURE_NOT_SUPPORTED), - ("HV014", SqlState::FDW_TOO_MANY_HANDLES), - ("08004", SqlState::SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION), - ("38001", SqlState::E_R_E_CONTAINING_SQL_NOT_PERMITTED), - ("01003", SqlState::WARNING_NULL_VALUE_ELIMINATED_IN_SET_FUNCTION), - ("08007", SqlState::TRANSACTION_RESOLUTION_UNKNOWN), - ("HV00D", SqlState::FDW_INVALID_OPTION_NAME), - ("38002", SqlState::E_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED), - ("HV00K", SqlState::FDW_REPLY_HANDLE), - ("23P01", SqlState::EXCLUSION_VIOLATION), - ("42P04", SqlState::DUPLICATE_DATABASE), - ("22025", SqlState::INVALID_ESCAPE_SEQUENCE), - ("HV007", SqlState::FDW_INVALID_COLUMN_NAME), - ("34000", SqlState::INVALID_CURSOR_NAME), - ("HV00L", SqlState::FDW_UNABLE_TO_CREATE_EXECUTION), - ("HV009", SqlState::FDW_INVALID_USE_OF_NULL_POINTER), - ("38000", SqlState::EXTERNAL_ROUTINE_EXCEPTION), - ("2B000", SqlState::DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST), - ("00000", SqlState::SUCCESSFUL_COMPLETION), - ("58000", SqlState::SYSTEM_ERROR), - ("2201E", SqlState::INVALID_ARGUMENT_FOR_LOG), - ("HV024", SqlState::FDW_INVALID_ATTRIBUTE_VALUE), - ("2200L", SqlState::NOT_AN_XML_DOCUMENT), - ("2203B", SqlState::SQL_JSON_NUMBER_NOT_FOUND), - ("42846", SqlState::CANNOT_COERCE), - ("22035", SqlState::NO_SQL_JSON_ITEM), - ("HV005", SqlState::FDW_COLUMN_NAME_NOT_FOUND), - ("20000", SqlState::CASE_NOT_FOUND), - ("40001", SqlState::T_R_SERIALIZATION_FAILURE), - ("22000", SqlState::DATA_EXCEPTION), - ("22038", SqlState::SINGLETON_SQL_JSON_ITEM_REQUIRED), - ("42P14", SqlState::INVALID_PSTATEMENT_DEFINITION), - ("39P02", SqlState::E_R_I_E_SRF_PROTOCOL_VIOLATED), - ("01008", SqlState::WARNING_IMPLICIT_ZERO_BIT_PADDING), - ("42P15", SqlState::INVALID_SCHEMA_DEFINITION), - ("55006", SqlState::OBJECT_IN_USE), - ("2203F", SqlState::SQL_JSON_SCALAR_REQUIRED), - ("22014", SqlState::INVALID_ARGUMENT_FOR_NTILE), - ("03000", SqlState::SQL_STATEMENT_NOT_YET_COMPLETE), - ("22008", SqlState::DATETIME_FIELD_OVERFLOW), - ("08006", SqlState::CONNECTION_FAILURE), - ("42P01", SqlState::UNDEFINED_TABLE), - ("40P01", SqlState::T_R_DEADLOCK_DETECTED), - ("0L000", SqlState::INVALID_GRANTOR), - ("22005", SqlState::ERROR_IN_ASSIGNMENT), - ("42622", SqlState::NAME_TOO_LONG), - ("57P04", SqlState::DATABASE_DROPPED), - ("42803", SqlState::GROUPING_ERROR), - ("22P01", SqlState::FLOATING_POINT_EXCEPTION), - ("42P18", SqlState::INDETERMINATE_DATATYPE), - ("38004", SqlState::E_R_E_READING_SQL_DATA_NOT_PERMITTED), - ("39P03", SqlState::E_R_I_E_EVENT_TRIGGER_PROTOCOL_VIOLATED), - ("2200N", SqlState::INVALID_XML_CONTENT), - ("57P02", SqlState::CRASH_SHUTDOWN), - ("23000", SqlState::INTEGRITY_CONSTRAINT_VIOLATION), - ("0F000", SqlState::LOCATOR_EXCEPTION), - ("08000", SqlState::CONNECTION_EXCEPTION), - ("2202E", SqlState::ARRAY_ELEMENT_ERROR), - ("22024", SqlState::UNTERMINATED_C_STRING), - ("08P01", SqlState::PROTOCOL_VIOLATION), - ("22023", SqlState::INVALID_PARAMETER_VALUE), - ("22031", SqlState::INVALID_ARGUMENT_FOR_SQL_JSON_DATETIME_FUNCTION), - ("HV00P", SqlState::FDW_NO_SCHEMAS), - ("23514", SqlState::CHECK_VIOLATION), - ("HV00Q", SqlState::FDW_SCHEMA_NOT_FOUND), - ("22P05", SqlState::UNTRANSLATABLE_CHARACTER), - ("53400", SqlState::CONFIGURATION_LIMIT_EXCEEDED), - ("3F000", SqlState::INVALID_SCHEMA_NAME), - ("22037", SqlState::NON_UNIQUE_KEYS_IN_A_JSON_OBJECT), - ("22004", SqlState::NULL_VALUE_NOT_ALLOWED), - ("2200B", SqlState::ESCAPE_CHARACTER_CONFLICT), - ("HV090", SqlState::FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH), - ("HV00R", SqlState::FDW_TABLE_NOT_FOUND), - ("42723", SqlState::DUPLICATE_FUNCTION), + ("25004", SqlState::INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION), ("22009", SqlState::INVALID_TIME_ZONE_DISPLACEMENT_VALUE), - ("HV00N", SqlState::FDW_UNABLE_TO_ESTABLISH_CONNECTION), - ("3B000", SqlState::SAVEPOINT_EXCEPTION), - ("22018", SqlState::INVALID_CHARACTER_VALUE_FOR_CAST), - ("HV004", SqlState::FDW_INVALID_DATA_TYPE), - ("08003", SqlState::CONNECTION_DOES_NOT_EXIST), - ("42P02", SqlState::UNDEFINED_PARAMETER), - ("23001", SqlState::RESTRICT_VIOLATION), - ("HV00C", SqlState::FDW_INVALID_OPTION_INDEX), - ("HV010", SqlState::FDW_FUNCTION_SEQUENCE_ERROR), - ("28P01", SqlState::INVALID_PASSWORD), - ("55000", SqlState::OBJECT_NOT_IN_PREREQUISITE_STATE), - ("2201X", SqlState::INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE), - ("P0001", SqlState::RAISE_EXCEPTION), - ("25000", SqlState::INVALID_TRANSACTION_STATE), - ("42704", SqlState::UNDEFINED_OBJECT), - ("22022", SqlState::INDICATOR_OVERFLOW), - ("09000", SqlState::TRIGGERED_ACTION_EXCEPTION), - ("22026", SqlState::STRING_DATA_LENGTH_MISMATCH), - ("01007", SqlState::WARNING_PRIVILEGE_NOT_GRANTED), - ("2200H", SqlState::SEQUENCE_GENERATOR_LIMIT_EXCEEDED), - ("25007", SqlState::SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED), - ("42701", SqlState::DUPLICATE_COLUMN), - ("42P08", SqlState::AMBIGUOUS_PARAMETER), - ("2201B", SqlState::INVALID_REGULAR_EXPRESSION), + ("HV090", SqlState::FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH), + ("42725", SqlState::AMBIGUOUS_FUNCTION), + ("2F003", SqlState::S_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED), + ("44000", SqlState::WITH_CHECK_OPTION_VIOLATION), + ("22032", SqlState::INVALID_JSON_TEXT), ("22036", SqlState::NON_NUMERIC_SQL_JSON_ITEM), - ("22011", SqlState::SUBSTRING_ERROR), + ("2201E", SqlState::INVALID_ARGUMENT_FOR_LOG), + ("25P02", SqlState::IN_FAILED_SQL_TRANSACTION), + ("22001", SqlState::STRING_DATA_RIGHT_TRUNCATION), + ("2201F", SqlState::INVALID_ARGUMENT_FOR_POWER_FUNCTION), + ("01006", SqlState::WARNING_PRIVILEGE_NOT_REVOKED), + ("428C9", SqlState::GENERATED_ALWAYS), + ("22003", SqlState::NUMERIC_VALUE_OUT_OF_RANGE), + ("22P01", SqlState::FLOATING_POINT_EXCEPTION), + ("HV00M", SqlState::FDW_UNABLE_TO_CREATE_REPLY), + ("2201G", SqlState::INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION), + ("34000", SqlState::INVALID_CURSOR_NAME), + ("42846", SqlState::CANNOT_COERCE), + ("2201B", SqlState::INVALID_REGULAR_EXPRESSION), + ("2202G", SqlState::INVALID_TABLESAMPLE_REPEAT), + ("42704", SqlState::UNDEFINED_OBJECT), + ("72000", SqlState::SNAPSHOT_TOO_OLD), + ("53400", SqlState::CONFIGURATION_LIMIT_EXCEEDED), + ("HV00L", SqlState::FDW_UNABLE_TO_CREATE_EXECUTION), + ("2B000", SqlState::DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST), + ("22010", SqlState::INVALID_INDICATOR_PARAMETER_VALUE), + ("54001", SqlState::STATEMENT_TOO_COMPLEX), + ("53200", SqlState::OUT_OF_MEMORY), + ("38001", SqlState::E_R_E_CONTAINING_SQL_NOT_PERMITTED), + ("22022", SqlState::INDICATOR_OVERFLOW), + ("2203E", SqlState::TOO_MANY_JSON_OBJECT_MEMBERS), + ("XX000", SqlState::INTERNAL_ERROR), + ("22025", SqlState::INVALID_ESCAPE_SEQUENCE), + ("09000", SqlState::TRIGGERED_ACTION_EXCEPTION), + ("HV008", SqlState::FDW_INVALID_COLUMN_NUMBER), + ("25P01", SqlState::NO_ACTIVE_SQL_TRANSACTION), + ("23505", SqlState::UNIQUE_VIOLATION), + ("3B000", SqlState::SAVEPOINT_EXCEPTION), + ("F0000", SqlState::CONFIG_FILE_ERROR), + ("54011", SqlState::TOO_MANY_COLUMNS), + ("XX002", SqlState::INDEX_CORRUPTED), + ("2203F", SqlState::SQL_JSON_SCALAR_REQUIRED), + ("42P12", SqlState::INVALID_DATABASE_DEFINITION), + ("HV00B", SqlState::FDW_INVALID_HANDLE), + ("55006", SqlState::OBJECT_IN_USE), + ("42P01", SqlState::UNDEFINED_TABLE), + ("25P03", SqlState::IDLE_IN_TRANSACTION_SESSION_TIMEOUT), + ("22037", SqlState::NON_UNIQUE_KEYS_IN_A_JSON_OBJECT), + ("2203A", SqlState::SQL_JSON_MEMBER_NOT_FOUND), + ("P0004", SqlState::ASSERT_FAILURE), + ("58000", SqlState::SYSTEM_ERROR), + ("42P21", SqlState::COLLATION_MISMATCH), + ("57P02", SqlState::CRASH_SHUTDOWN), + ("42830", SqlState::INVALID_FOREIGN_KEY), ("0LP01", SqlState::INVALID_GRANT_OPERATION), + ("22P02", SqlState::INVALID_TEXT_REPRESENTATION), + ("22039", SqlState::SQL_JSON_ARRAY_NOT_FOUND), + ("28P01", SqlState::INVALID_PASSWORD), + ("22011", SqlState::SUBSTRING_ERROR), + ("HV00J", SqlState::FDW_OPTION_NAME_NOT_FOUND), + ("2200C", SqlState::INVALID_USE_OF_ESCAPE_CHARACTER), + ("08006", SqlState::CONNECTION_FAILURE), + ("22021", SqlState::CHARACTER_NOT_IN_REPERTOIRE), + ("21000", SqlState::CARDINALITY_VIOLATION), + ("42803", SqlState::GROUPING_ERROR), + ("00000", SqlState::SUCCESSFUL_COMPLETION), + ("42P16", SqlState::INVALID_TABLE_DEFINITION), + ("38002", SqlState::E_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED), + ("57P03", SqlState::CANNOT_CONNECT_NOW), + ("01004", SqlState::WARNING_STRING_DATA_RIGHT_TRUNCATION), + ("HV00K", SqlState::FDW_REPLY_HANDLE), + ("42P06", SqlState::DUPLICATE_SCHEMA), + ("54000", SqlState::PROGRAM_LIMIT_EXCEEDED), + ("2200S", SqlState::INVALID_XML_COMMENT), + ("42000", SqlState::SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION), + ("42P03", SqlState::DUPLICATE_CURSOR), + ("HV002", SqlState::FDW_DYNAMIC_PARAMETER_VALUE_NEEDED), + ("2202H", SqlState::INVALID_TABLESAMPLE_ARGUMENT), + ("08001", SqlState::SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION), + ("0L000", SqlState::INVALID_GRANTOR), + ("2200L", SqlState::NOT_AN_XML_DOCUMENT), + ("HV006", SqlState::FDW_INVALID_DATA_TYPE_DESCRIPTORS), + ("55000", SqlState::OBJECT_NOT_IN_PREREQUISITE_STATE), + ("58P01", SqlState::UNDEFINED_FILE), + ("0B000", SqlState::INVALID_TRANSACTION_INITIATION), + ("22000", SqlState::DATA_EXCEPTION), + ("HV00R", SqlState::FDW_TABLE_NOT_FOUND), + ("2F002", SqlState::S_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED), + ("01007", SqlState::WARNING_PRIVILEGE_NOT_GRANTED), + ("42P19", SqlState::INVALID_RECURSION), + ("22016", SqlState::INVALID_ARGUMENT_FOR_NTH_VALUE), + ("42702", SqlState::AMBIGUOUS_COLUMN), + ("25005", SqlState::NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION), + ("22004", SqlState::NULL_VALUE_NOT_ALLOWED), + ("42P05", SqlState::DUPLICATE_PSTATEMENT), + ("39001", SqlState::E_R_I_E_INVALID_SQLSTATE_RETURNED), + ("22038", SqlState::SINGLETON_SQL_JSON_ITEM_REQUIRED), + ("22008", SqlState::DATETIME_FIELD_OVERFLOW), + ("38003", SqlState::E_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED), + ("53000", SqlState::INSUFFICIENT_RESOURCES), + ("3B001", SqlState::S_E_INVALID_SPECIFICATION), + ("28000", SqlState::INVALID_AUTHORIZATION_SPECIFICATION), + ("P0000", SqlState::PLPGSQL_ERROR), + ("38000", SqlState::EXTERNAL_ROUTINE_EXCEPTION), + ("22019", SqlState::INVALID_ESCAPE_CHARACTER), + ("22015", SqlState::INTERVAL_FIELD_OVERFLOW), + ("42710", SqlState::DUPLICATE_OBJECT), + ("2200M", SqlState::INVALID_XML_DOCUMENT), + ("HV000", SqlState::FDW_ERROR), + ("22P05", SqlState::UNTRANSLATABLE_CHARACTER), + ("0100C", SqlState::WARNING_DYNAMIC_RESULT_SETS_RETURNED), + ("55P02", SqlState::CANT_CHANGE_RUNTIME_PARAM), + ("01003", SqlState::WARNING_NULL_VALUE_ELIMINATED_IN_SET_FUNCTION), + ("2200N", SqlState::INVALID_XML_CONTENT), + ("2F000", SqlState::SQL_ROUTINE_EXCEPTION), + ("08007", SqlState::TRANSACTION_RESOLUTION_UNKNOWN), + ("2200B", SqlState::ESCAPE_CHARACTER_CONFLICT), + ("22P03", SqlState::INVALID_BINARY_REPRESENTATION), + ("42P09", SqlState::AMBIGUOUS_ALIAS), + ("39004", SqlState::E_R_I_E_NULL_VALUE_NOT_ALLOWED), + ("23502", SqlState::NOT_NULL_VIOLATION), + ("2203D", SqlState::TOO_MANY_JSON_ARRAY_ELEMENTS), + ("42P15", SqlState::INVALID_SCHEMA_DEFINITION), + ("08004", SqlState::SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION), + ("HV00N", SqlState::FDW_UNABLE_TO_ESTABLISH_CONNECTION), + ("0A000", SqlState::FEATURE_NOT_SUPPORTED), + ("57014", SqlState::QUERY_CANCELED), + ("22033", SqlState::INVALID_SQL_JSON_SUBSCRIPT), + ("0F001", SqlState::L_E_INVALID_SPECIFICATION), + ("HV00A", SqlState::FDW_INVALID_STRING_FORMAT), + ("39P02", SqlState::E_R_I_E_SRF_PROTOCOL_VIOLATED), + ("42701", SqlState::DUPLICATE_COLUMN), + ("42611", SqlState::INVALID_COLUMN_DEFINITION), + ("HV001", SqlState::FDW_OUT_OF_MEMORY), + ("HV091", SqlState::FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER), + ("23P01", SqlState::EXCLUSION_VIOLATION), + ("F0001", SqlState::LOCK_FILE_EXISTS), + ("42501", SqlState::INSUFFICIENT_PRIVILEGE), + ("22026", SqlState::STRING_DATA_LENGTH_MISMATCH), + ("54023", SqlState::TOO_MANY_ARGUMENTS), + ("01008", SqlState::WARNING_IMPLICIT_ZERO_BIT_PADDING), + ("42P04", SqlState::DUPLICATE_DATABASE), + ("22027", SqlState::TRIM_ERROR), + ("53300", SqlState::TOO_MANY_CONNECTIONS), + ("0Z002", SqlState::STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER), + ("42P14", SqlState::INVALID_PSTATEMENT_DEFINITION), + ("P0001", SqlState::RAISE_EXCEPTION), + ("HV014", SqlState::FDW_TOO_MANY_HANDLES), + ("40002", SqlState::T_R_INTEGRITY_CONSTRAINT_VIOLATION), + ("3D000", SqlState::INVALID_CATALOG_NAME), + ("03000", SqlState::SQL_STATEMENT_NOT_YET_COMPLETE), + ("22024", SqlState::UNTERMINATED_C_STRING), + ("42P13", SqlState::INVALID_FUNCTION_DEFINITION), + ("08000", SqlState::CONNECTION_EXCEPTION), + ("25007", SqlState::SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED), + ("40001", SqlState::T_R_SERIALIZATION_FAILURE), + ("25001", SqlState::ACTIVE_SQL_TRANSACTION), + ("HV00Q", SqlState::FDW_SCHEMA_NOT_FOUND), + ("22P04", SqlState::BAD_COPY_FILE_FORMAT), + ("XX001", SqlState::DATA_CORRUPTED), + ("23503", SqlState::FOREIGN_KEY_VIOLATION), + ("23514", SqlState::CHECK_VIOLATION), + ("42809", SqlState::WRONG_OBJECT_TYPE), + ("2200F", SqlState::ZERO_LENGTH_CHARACTER_STRING), + ("2BP01", SqlState::DEPENDENT_OBJECTS_STILL_EXIST), + ("25008", SqlState::HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL), + ("55P03", SqlState::LOCK_NOT_AVAILABLE), + ("42P22", SqlState::INDETERMINATE_COLLATION), + ("HV00D", SqlState::FDW_INVALID_OPTION_NAME), + ("42P17", SqlState::INVALID_OBJECT_DEFINITION), + ("23001", SqlState::RESTRICT_VIOLATION), + ("22P06", SqlState::NONSTANDARD_USE_OF_ESCAPE_CHARACTER), + ("22031", SqlState::INVALID_ARGUMENT_FOR_SQL_JSON_DATETIME_FUNCTION), + ("2200D", SqlState::INVALID_ESCAPE_OCTET), + ("0Z000", SqlState::DIAGNOSTICS_EXCEPTION), + ("HV024", SqlState::FDW_INVALID_ATTRIBUTE_VALUE), + ("22005", SqlState::ERROR_IN_ASSIGNMENT), + ("58P02", SqlState::DUPLICATE_FILE), + ("HV00P", SqlState::FDW_NO_SCHEMAS), + ("42P10", SqlState::INVALID_COLUMN_REFERENCE), + ("42P20", SqlState::WINDOWING_ERROR), + ("25000", SqlState::INVALID_TRANSACTION_STATE), + ("38004", SqlState::E_R_E_READING_SQL_DATA_NOT_PERMITTED), + ("01P01", SqlState::WARNING_DEPRECATED_FEATURE), + ("40000", SqlState::TRANSACTION_ROLLBACK), + ("58030", SqlState::IO_ERROR), + ("26000", SqlState::INVALID_SQL_STATEMENT_NAME), + ("22007", SqlState::INVALID_DATETIME_FORMAT), + ("23000", SqlState::INTEGRITY_CONSTRAINT_VIOLATION), + ("0P000", SqlState::INVALID_ROLE_SPECIFICATION), + ("22014", SqlState::INVALID_ARGUMENT_FOR_NTILE), + ("P0002", SqlState::NO_DATA_FOUND), + ("39P03", SqlState::E_R_I_E_EVENT_TRIGGER_PROTOCOL_VIOLATED), + ("39000", SqlState::EXTERNAL_ROUTINE_INVOCATION_EXCEPTION), + ("42P11", SqlState::INVALID_CURSOR_DEFINITION), + ("HV010", SqlState::FDW_FUNCTION_SEQUENCE_ERROR), + ("22002", SqlState::NULL_VALUE_NO_INDICATOR_PARAMETER), + ("08P01", SqlState::PROTOCOL_VIOLATION), + ("42723", SqlState::DUPLICATE_FUNCTION), + ("40003", SqlState::T_R_STATEMENT_COMPLETION_UNKNOWN), + ("25003", SqlState::INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION), + ("02001", SqlState::NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED), + ("42804", SqlState::DATATYPE_MISMATCH), ]), };