Skip to content

Commit 9c6855b

Browse files
committed
Fix problem altering system trigger. Thanks Pavel Zotov.
1 parent d377cb2 commit 9c6855b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ FB_IMPL_MSG_SYMBOL(DYN, 313, dyn_dup_package, "Package @1 already exists")
306306
FB_IMPL_MSG(DYN, 314, dyn_index_schema_must_match_table, -901, "42", "000", "Index schema (@1) must match table schema (@2)")
307307
FB_IMPL_MSG(DYN, 315, dyn_trig_schema_must_match_table, -901, "42", "000", "Trigger schema (@1) must match table schema (@2)")
308308
FB_IMPL_MSG_SYMBOL(DYN, 316, dyn_dup_schema, "Schema @1 already exists")
309-
FB_IMPL_MSG(DYN, 317, dyn_cannot_mod_system_schema, -607, "HY", "000", "Cannot ALTER or DROP SYSTEM schema")
309+
FB_IMPL_MSG(DYN, 317, dyn_cannot_mod_system_schema, -607, "28", "000", "Cannot ALTER or DROP SYSTEM schema")
310310
FB_IMPL_MSG(DYN, 318, dyn_cannot_drop_non_emptyschema, -607, "HY", "000", "Cannot DROP schema @1 because it has objects")
311-
FB_IMPL_MSG(DYN, 319, dyn_cannot_mod_obj_sys_schema, -607, "HY", "000", "Cannot CREATE/ALTER/DROP @1 in SYSTEM schema")
311+
FB_IMPL_MSG(DYN, 319, dyn_cannot_mod_obj_sys_schema, -607, "28", "000", "Cannot CREATE/ALTER/DROP @1 in SYSTEM schema")
312312
FB_IMPL_MSG(DYN, 320, dyn_cannot_create_reserved_schema, -607, "HY", "000", "Schema name @1 is reserved and cannot be created")
313313
FB_IMPL_MSG(DYN, 321, dyn_cannot_infer_schema, -901, "42", "000", "Cannot infer schema name as there is no valid schema in the search path")

src/jrd/obj.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ inline const char* getObjectName(ObjectType objType)
218218
{
219219
case obj_relation:
220220
return "TABLE";
221+
case obj_trigger:
222+
return "TRIGGER";
221223
case obj_package_header:
222224
return "PACKAGE";
223225
case obj_procedure:

0 commit comments

Comments
 (0)