Skip to content

Commit f594ddf

Browse files
committed
#8739 Replace wrong uses of SQLstate class 08 (connection error)
1 parent 31e635a commit f594ddf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/include/gen/sql_state.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static const struct {
3232
{335544329, "42000"}, // 9 bad_segstr_id
3333
{335544330, "HY000"}, // 10 bad_tpb_content
3434
{335544331, "HY000"}, // 11 bad_tpb_form
35-
{335544332, "08003"}, // 12 bad_trans_handle
35+
{335544332, "HY000"}, // 12 bad_trans_handle
3636
{335544333, "XX000"}, // 13 bug_check
3737
{335544334, "22018"}, // 14 convert_error
3838
{335544335, "XX001"}, // 15 db_corrupt
@@ -320,7 +320,7 @@ static const struct {
320320
{335544617, "42000"}, // 297 order_by_err
321321
{335544618, "HY000"}, // 298 return_mode_err
322322
{335544619, "38000"}, // 299 extern_func_err
323-
{335544620, "08001"}, // 300 alias_conflict_err
323+
{335544620, "42000"}, // 300 alias_conflict_err
324324
{335544621, "42000"}, // 301 procedure_conflict_error
325325
{335544622, "42000"}, // 302 relation_conflict_err
326326
{335544623, "42000"}, // 303 dsql_domain_err
@@ -721,7 +721,7 @@ static const struct {
721721
{335545018, "42000"}, // 698 private_function
722722
{335545019, "42000"}, // 699 private_procedure
723723
{335545020, "24000"}, // 700 request_outdated
724-
{335545021, "08003"}, // 701 bad_events_handle
724+
{335545021, "HY000"}, // 701 bad_events_handle
725725
{335545022, "XX000"}, // 702 cannot_copy_stmt
726726
{335545023, "22000"}, // 703 invalid_boolean_usage
727727
{335545024, "42000"}, // 704 sysf_argscant_both_be_zero

src/msgs/system_errors2.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set bulk_insert INSERT INTO SYSTEM_ERRORS (SQL_CODE, SQL_CLASS, SQL_SUBCLASS, FA
1212
(-901, '42', '000', 0, 9, 'bad_segstr_id', NULL, 'ERROR')
1313
(-901, 'HY', '000', 0, 10, 'bad_tpb_content', NULL, 'ERROR')
1414
(-901, 'HY', '000', 0, 11, 'bad_tpb_form', NULL, 'ERROR')
15-
(-901, '08', '003', 0, 12, 'bad_trans_handle', NULL, 'ERROR')
15+
(-901, 'HY', '000', 0, 12, 'bad_trans_handle', NULL, 'ERROR')
1616
(-902, 'XX', '000', 0, 13, 'bug_check', NULL, 'SEVERE')
1717
(-413, '22', '018', 0, 14, 'convert_error', NULL, 'ERROR')
1818
(-902, 'XX', '001', 0, 15, 'db_corrupt', NULL, 'SEVERE')
@@ -300,7 +300,7 @@ set bulk_insert INSERT INTO SYSTEM_ERRORS (SQL_CODE, SQL_CLASS, SQL_SUBCLASS, FA
300300
(-208, '42', '000', 0, 297, 'order_by_err', NULL, NULL)
301301
(-171, 'HY', '000', 0, 298, 'return_mode_err', NULL, NULL)
302302
(-170, '38', '000', 0, 299, 'extern_func_err', NULL, NULL)
303-
(-204, '08', '001', 0, 300, 'alias_conflict_err', NULL, NULL)
303+
(-204, '42', '000', 0, 300, 'alias_conflict_err', NULL, NULL)
304304
(-204, '42', '000', 0, 301, 'procedure_conflict_error', NULL, NULL)
305305
(-204, '42', '000', 0, 302, 'relation_conflict_err', NULL, NULL)
306306
(-901, '42', '000', 0, 303, 'dsql_domain_err', NULL, NULL)
@@ -706,7 +706,7 @@ set bulk_insert INSERT INTO SYSTEM_ERRORS (SQL_CODE, SQL_CLASS, SQL_SUBCLASS, FA
706706
(-901, '42', '000', 0, 698, 'private_function', NULL, NULL)
707707
(-901, '42', '000', 0, 699, 'private_procedure', NULL, NULL)
708708
(-904, '24', '000', 0, 700, 'request_outdated', NULL, NULL)
709-
(-901, '08', '003', 0, 701, 'bad_events_handle', NULL, 'ERROR')
709+
(-901, 'HY', '000', 0, 701, 'bad_events_handle', NULL, 'ERROR')
710710
(-104, 'XX', '000', 0, 702, 'cannot_copy_stmt', NULL, NULL)
711711
(-104, '22', '000', 0, 703, 'invalid_boolean_usage', NULL, NULL)
712712
(-833, '42', '000', 0, 704, 'sysf_argscant_both_be_zero', NULL, NULL)

0 commit comments

Comments
 (0)