Skip to content

Commit 402365e

Browse files
committed
#8739 Replace wrong uses of SQLstate class 08 (connection error)
1 parent 6857116 commit 402365e

File tree

1 file changed

+5
-5
lines changed
  • src/include/firebird/impl/msg

1 file changed

+5
-5
lines changed

src/include/firebird/impl/msg/jrd.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FB_IMPL_MSG(JRD, 8, bad_segstr_handle, -901, "42", "000", "invalid BLOB handle")
1010
FB_IMPL_MSG(JRD, 9, bad_segstr_id, -901, "42", "000", "invalid BLOB ID")
1111
FB_IMPL_MSG(JRD, 10, bad_tpb_content, -901, "HY", "000", "invalid parameter in transaction parameter block")
1212
FB_IMPL_MSG(JRD, 11, bad_tpb_form, -901, "HY", "000", "invalid format for transaction parameter block")
13-
FB_IMPL_MSG(JRD, 12, bad_trans_handle, -901, "08", "003", "invalid transaction handle (expecting explicit transaction start)")
13+
FB_IMPL_MSG(JRD, 12, bad_trans_handle, -901, "HY", "000", "invalid transaction handle (expecting explicit transaction start)")
1414
FB_IMPL_MSG(JRD, 13, bug_check, -902, "XX", "000", "internal Firebird consistency check (@1)")
1515
FB_IMPL_MSG(JRD, 14, convert_error, -413, "22", "018", "conversion error from string \"@1\"")
1616
FB_IMPL_MSG(JRD, 15, db_corrupt, -902, "XX", "001", "database file appears corrupt (@1)")
@@ -298,7 +298,7 @@ FB_IMPL_MSG(JRD, 296, field_ref_err, -829, "42", "S22", "invalid column referenc
298298
FB_IMPL_MSG(JRD, 297, order_by_err, -208, "42", "000", "invalid ORDER BY clause")
299299
FB_IMPL_MSG(JRD, 298, return_mode_err, -171, "HY", "000", "Return mode by value not allowed for this data type")
300300
FB_IMPL_MSG(JRD, 299, extern_func_err, -170, "38", "000", "External functions cannot have more than 10 parameters")
301-
FB_IMPL_MSG(JRD, 300, alias_conflict_err, -204, "08", "001", "alias @1 conflicts with an alias in the same statement")
301+
FB_IMPL_MSG(JRD, 300, alias_conflict_err, -204, "42", "000", "alias @1 conflicts with an alias in the same statement")
302302
FB_IMPL_MSG(JRD, 301, procedure_conflict_error, -204, "42", "000", "alias @1 conflicts with a procedure in the same statement")
303303
FB_IMPL_MSG(JRD, 302, relation_conflict_err, -204, "42", "000", "alias @1 conflicts with a table in the same statement")
304304
FB_IMPL_MSG(JRD, 303, dsql_domain_err, -901, "42", "000", "Illegal use of keyword VALUE")
@@ -699,7 +699,7 @@ FB_IMPL_MSG(JRD, 697, async_active, -532, "HY", "018", "Asynchronous call is alr
699699
FB_IMPL_MSG(JRD, 698, private_function, -901, "42", "000", "Function @1 is private to package @2")
700700
FB_IMPL_MSG(JRD, 699, private_procedure, -901, "42", "000", "Procedure @1 is private to package @2")
701701
FB_IMPL_MSG(JRD, 700, request_outdated, -904, "24", "000", "Request can't access new records in relation @1 and should be recompiled")
702-
FB_IMPL_MSG(JRD, 701, bad_events_handle, -901, "08", "003", "invalid events id (handle)")
702+
FB_IMPL_MSG(JRD, 701, bad_events_handle, -901, "HY", "000", "invalid events id (handle)")
703703
FB_IMPL_MSG(JRD, 702, cannot_copy_stmt, -104, "XX", "000", "Cannot copy statement @1")
704704
FB_IMPL_MSG(JRD, 703, invalid_boolean_usage, -104, "22", "000", "Invalid usage of boolean expression")
705705
FB_IMPL_MSG(JRD, 704, sysf_argscant_both_be_zero, -833, "42", "000", "Arguments for @1 cannot both be zero")
@@ -838,7 +838,7 @@ FB_IMPL_MSG(JRD, 835, invalid_decfloat_round, -901, "42", "000", "Invalid decflo
838838
FB_IMPL_MSG(JRD, 836, sysf_invalid_first_last_part, -833, "42", "000", "Invalid part @1 to calculate the @1 of a DATE/TIMESTAMP")
839839
FB_IMPL_MSG(JRD, 837, sysf_invalid_date_timestamp, -833, "42", "000", "Expected DATE/TIMESTAMP value in @1")
840840
FB_IMPL_MSG(JRD, 838, precision_err2, -842, "HY", "104", "Precision must be from @1 to @2")
841-
FB_IMPL_MSG(JRD, 839, bad_batch_handle, -901, "08", "003", "invalid batch handle")
841+
FB_IMPL_MSG(JRD, 839, bad_batch_handle, -901, "HY", "000", "invalid batch handle")
842842
FB_IMPL_MSG(JRD, 840, intl_char, -901, "22", "021", "Bad international character in tag @1")
843843
FB_IMPL_MSG(JRD, 841, null_block, -901, "22", "000", "Null data in parameters block with non-zero length")
844844
FB_IMPL_MSG(JRD, 842, mixed_info, -901, "22", "000", "Items working with running service and getting generic server information should not be mixed in single info block")
@@ -863,7 +863,7 @@ FB_IMPL_MSG(JRD, 860, non_plugin_protocol, -902, "08", "004", "Plugin not suppor
863863
FB_IMPL_MSG(JRD, 861, message_format, -901, "22", "000", "Error parsing message format")
864864
FB_IMPL_MSG(JRD, 862, batch_param_version, -901, "22", "000", "Wrong version of batch parameters block @1, should be @2")
865865
FB_IMPL_MSG(JRD, 863, batch_msg_long, -901, "54", "000", "Message size (@1) in batch exceeds internal buffer size (@2)")
866-
FB_IMPL_MSG(JRD, 864, batch_open, -901, "08", "002", "Batch already opened for this statement")
866+
FB_IMPL_MSG(JRD, 864, batch_open, -901, "HY", "010", "Batch already opened for this statement")
867867
FB_IMPL_MSG(JRD, 865, batch_type, -901, "07", "003", "Invalid type of statement used in batch")
868868
FB_IMPL_MSG(JRD, 866, batch_param, -901, "07", "001", "Statement used in batch must have parameters")
869869
FB_IMPL_MSG(JRD, 867, batch_blobs, -901, "07", "001", "There are no blobs in associated with batch statement")

0 commit comments

Comments
 (0)