8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:43:04 +01:00

Backported Dmitry's fix for unregistered AV

This commit is contained in:
alexpeshkoff 2007-12-20 09:37:37 +00:00
parent 2e42051c48
commit eab270d7e7

View File

@ -201,13 +201,13 @@ void ERR_duplicate_error(IDX_E code,
case idx_e_foreign_target_doesnt_exist:
ERR_post(isc_foreign_key, isc_arg_string, constraint_name,
isc_arg_string, relation->rel_name.c_str(),
isc_arg_string, ERR_string(relation->rel_name),
isc_arg_gds, isc_foreign_key_target_doesnt_exist, 0);
break;
case idx_e_foreign_references_present:
ERR_post(isc_foreign_key, isc_arg_string, constraint_name,
isc_arg_string, relation->rel_name.c_str(),
isc_arg_string, ERR_string(relation->rel_name),
isc_arg_gds, isc_foreign_key_references_present, 0);
break;
@ -215,7 +215,7 @@ void ERR_duplicate_error(IDX_E code,
if (constraint.length() > 0)
ERR_post(isc_unique_key_violation,
isc_arg_string, constraint_name,
isc_arg_string, relation->rel_name.c_str(), 0);
isc_arg_string, ERR_string(relation->rel_name), 0);
else
ERR_post(isc_no_dup, isc_arg_string, index_name, 0);
}