@@ -279,7 +279,10 @@ static void checkSpTrigDependency(thread_db* tdbb, jrd_tra* transaction,
279279
280280 // msg 206: Column %s from table %s is referenced in %s.
281281 status_exception::raise(
282- Arg::PrivateDyn(206) << fieldName << relationName.toQuotedString() << depName.toQuotedString());
282+ Arg::PrivateDyn(206) <<
283+ fieldName.toQuotedString() <<
284+ relationName.toQuotedString() <<
285+ depName.toQuotedString());
283286 }
284287 END_FOR
285288}
@@ -311,7 +314,10 @@ static void checkViewDependency(thread_db* tdbb, jrd_tra* transaction,
311314
312315 // msg 206: Column %s from table %s is referenced in %s.
313316 status_exception::raise(
314- Arg::PrivateDyn(206) << fieldName << relationName.toQuotedString() << viewName.toQuotedString());
317+ Arg::PrivateDyn(206) <<
318+ fieldName.toQuotedString() <<
319+ relationName.toQuotedString() <<
320+ viewName.toQuotedString());
315321 }
316322 END_FOR
317323}
@@ -695,7 +701,10 @@ static void modifyLocalFieldPosition(thread_db* tdbb, jrd_tra* transaction,
695701 if (!found)
696702 {
697703 // msg 176: "column %s does not exist in table/view %s"
698- status_exception::raise(Arg::PrivateDyn(176) << fieldName << relationName.toQuotedString());
704+ status_exception::raise(
705+ Arg::PrivateDyn(176) <<
706+ fieldName.toQuotedString() <<
707+ relationName.toQuotedString());
699708 }
700709
701710 // Find the position of the last field in the relation.
@@ -2318,7 +2327,7 @@ void CreateAlterFunctionNode::storeArgument(thread_db* tdbb, DsqlCompilerScratch
23182327 status_exception::raise(
23192328 Arg::Gds(isc_dyn_defvaldecl_package_func) <<
23202329 name.getSchemaAndPackage().toQuotedString() <<
2321- name.object);
2330+ name.object.toQuotedString() );
23222331 }
23232332
23242333 ARG.RDB$DEFAULT_VALUE.NULL = FALSE;
@@ -3254,7 +3263,7 @@ void CreateAlterProcedureNode::storeParameter(thread_db* tdbb, DsqlCompilerScrat
32543263 status_exception::raise(
32553264 Arg::Gds(isc_dyn_defvaldecl_package_proc) <<
32563265 name.getSchemaAndPackage().toQuotedString() <<
3257- name.object);
3266+ name.object.toQuotedString() );
32583267 }
32593268
32603269 attachment->storeMetaDataBlob(tdbb, transaction, &PRM.RDB$DEFAULT_SOURCE,
@@ -6508,7 +6517,7 @@ bool RelationNode::deleteLocalField(thread_db* tdbb, jrd_tra* transaction,
65086517 // msg 52: "field %s from relation %s is referenced in view %s"
65096518 status_exception::raise(
65106519 Arg::PrivateDyn(52) <<
6511- fieldName <<
6520+ fieldName.toQuotedString() <<
65126521 relationName.toQuotedString() <<
65136522 QualifiedName(Y.RDB$RELATION_NAME, Y.RDB$SCHEMA_NAME).toQuotedString());
65146523 }
@@ -6544,7 +6553,10 @@ bool RelationNode::deleteLocalField(thread_db* tdbb, jrd_tra* transaction,
65446553 {
65456554 // msg 187: "field %s from relation %s is referenced in index %s"
65466555 status_exception::raise(
6547- Arg::PrivateDyn(187) << fieldName << relationName.toQuotedString() << IDX.RDB$INDEX_NAME);
6556+ Arg::PrivateDyn(187) <<
6557+ fieldName.toQuotedString() <<
6558+ relationName.toQuotedString() <<
6559+ MetaName(IDX.RDB$INDEX_NAME).toQuotedString());
65486560 }
65496561 }
65506562 END_FOR
@@ -6575,8 +6587,9 @@ bool RelationNode::deleteLocalField(thread_db* tdbb, jrd_tra* transaction,
65756587 // msg 187: "field %s from relation %s is referenced in index %s"
65766588 status_exception::raise(
65776589 Arg::PrivateDyn(187) <<
6578- fieldName << relationName.toQuotedString() <<
6579- fb_utils::exact_name_limit(IDX.RDB$INDEX_NAME, sizeof(IDX.RDB$INDEX_NAME)));
6590+ fieldName.toQuotedString() <<
6591+ relationName.toQuotedString() <<
6592+ MetaName(IDX.RDB$INDEX_NAME).toQuotedString());
65806593 }
65816594 END_FOR
65826595
@@ -6633,7 +6646,10 @@ bool RelationNode::deleteLocalField(thread_db* tdbb, jrd_tra* transaction,
66336646 if (!found && !silent)
66346647 {
66356648 // msg 176: "column %s does not exist in table/view %s"
6636- status_exception::raise(Arg::PrivateDyn(176) << fieldName << relationName.toQuotedString());
6649+ status_exception::raise(
6650+ Arg::PrivateDyn(176) <<
6651+ fieldName.toQuotedString() <<
6652+ relationName.toQuotedString());
66376653 }
66386654
66396655 return found;
@@ -12481,12 +12497,12 @@ void GrantRevokeNode::grantRevoke(thread_db* tdbb, jrd_tra* transaction, const G
1248112497 if (isGrant)
1248212498 {
1248312499 // msg 195: keyword NONE could not be used as SQL role name.
12484- status_exception::raise(Arg::PrivateDyn(195) << objName.object.c_str ());
12500+ status_exception::raise(Arg::PrivateDyn(195) << objName.object.toQuotedString ());
1248512501 }
1248612502 else
1248712503 {
1248812504 ///CVC: Make this a warning in the future.
12489- ///DYN_error_punt(false, 195, objName.c_str ());
12505+ ///DYN_error_punt(false, 195, objName.toQuotedString ());
1249012506 }
1249112507 }
1249212508
@@ -12787,7 +12803,7 @@ void GrantRevokeNode::checkGrantorCanGrantRelation(thread_db* tdbb, jrd_tra* tra
1278712803 {
1278812804 // column .. does not exist in table/view ..
1278912805 status_exception::raise(Arg::PrivateDyn(176) <<
12790- fieldName <<
12806+ fieldName.toQuotedString() <<
1279112807 relationName.toQuotedString());
1279212808 }
1279312809 }
@@ -12871,7 +12887,7 @@ void GrantRevokeNode::checkGrantorCanGrantRelation(thread_db* tdbb, jrd_tra* tra
1287112887 {
1287212888 // no grant option for privilege .. on column .. of [base] table/view ..
1287312889 status_exception::raise(Arg::PrivateDyn(topLevel ? 167 : 168) <<
12874- privilegeName(*privilege) << fieldName.c_str () << relationName.toQuotedString());
12890+ privilegeName(*privilege) << fieldName.toQuotedString () << relationName.toQuotedString());
1287512891 }
1287612892
1287712893 if (goFld == -1)
@@ -12880,14 +12896,14 @@ void GrantRevokeNode::checkGrantorCanGrantRelation(thread_db* tdbb, jrd_tra* tra
1288012896 {
1288112897 // no grant option for privilege .. on [base] table/view .. (for column ..)
1288212898 status_exception::raise(Arg::PrivateDyn(topLevel ? 169 : 170) <<
12883- privilegeName(*privilege) << relationName.toQuotedString() << fieldName.c_str ());
12899+ privilegeName(*privilege) << relationName.toQuotedString() << fieldName.toQuotedString ());
1288412900 }
1288512901
1288612902 if (goRel == -1)
1288712903 {
1288812904 // no .. privilege with grant option on [base] table/view .. (for column ..)
1288912905 status_exception::raise(Arg::PrivateDyn(topLevel ? 171 : 172) <<
12890- privilegeName(*privilege) << relationName.toQuotedString() << fieldName.c_str ());
12906+ privilegeName(*privilege) << relationName.toQuotedString() << fieldName.toQuotedString ());
1289112907 }
1289212908 }
1289312909 }
@@ -13189,8 +13205,7 @@ void GrantRevokeNode::setFieldClassName(thread_db* tdbb, jrd_tra* transaction,
1318913205 AutoCacheRequest request2(tdbb, drq_s_u_class, DYN_REQUESTS);
1319013206 FOR (REQUEST_HANDLE request2 TRANSACTION_HANDLE transaction)
1319113207 RFR1 IN RDB$RELATION_FIELDS
13192- WITH RFR1.RDB$SCHEMA_NAME = RFR.RDB$SCHEMA_NAME AND
13193- RFR1.RDB$SECURITY_CLASS = RFR.RDB$SECURITY_CLASS
13208+ WITH RFR1.RDB$SECURITY_CLASS = RFR.RDB$SECURITY_CLASS
1319413209 {
1319513210 unique = false;
1319613211 }
0 commit comments