From eab270d7e706c3ccbbbd61215cfc12ddda534f23 Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Thu, 20 Dec 2007 09:37:37 +0000 Subject: [PATCH] Backported Dmitry's fix for unregistered AV --- src/jrd/err.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jrd/err.cpp b/src/jrd/err.cpp index e7c68ca5a5..bd6b1dbe0e 100644 --- a/src/jrd/err.cpp +++ b/src/jrd/err.cpp @@ -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); }