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

Complement fix for CORE-3140 - Preserve comments for parameters after altering procedures.

This commit is contained in:
asfernandes 2011-06-17 12:39:25 +00:00
parent 77af7c9d55
commit 17c249fc3d

View File

@ -2155,7 +2155,13 @@ bool CreateAlterProcedureNode::executeAlter(thread_db* tdbb, DsqlCompilerScratch
for (unsigned i = 0; i < returns.getCount(); ++i)
{
ParameterClause& parameter = returns[i];
storeParameter(tdbb, dsqlScratch, transaction, 1, i, parameter, NULL);
bid comment;
// Find the original comment to recreate in the new parameter.
if (!comments.get(parameter.name, comment))
comment.clear();
storeParameter(tdbb, dsqlScratch, transaction, 1, i, parameter, &comment);
}
AutoCacheRequest requestHandle2(tdbb, drq_m_prm_view, DYN_REQUESTS);