Skip to content

Commit ccc9f51

Browse files
author
Artyom Abakumov
committed
Use different names for new impure helper methods
1 parent 5b9af0e commit ccc9f51

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/dsql/ExprNodes.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3753,7 +3753,7 @@ dsc* CastNode::perform(thread_db* tdbb, impure_value* impure, dsc* value,
37533753
}
37543754

37553755
// Allocate a string block of sufficient size.
3756-
impure->allocateTextImpureDscAddress(*tdbb->getDefaultPool());
3756+
impure->makeTextValueAddress(*tdbb->getDefaultPool());
37573757
}
37583758

37593759
EVL_validate(tdbb, Item(Item::TYPE_CAST), itemInfo,
@@ -7122,7 +7122,7 @@ dsc* FieldNode::execute(thread_db* tdbb, Request* request) const
71227122
dsc desc = impure->vlu_desc;
71237123
impure->vlu_desc = format->fmt_desc[fieldId];
71247124

7125-
impure->makeImpureDscAddress(*tdbb->getDefaultPool());
7125+
impure->makeValueAddress(*tdbb->getDefaultPool());
71267126
MOV_move(tdbb, &desc, &impure->vlu_desc);
71277127
}
71287128

@@ -13648,7 +13648,7 @@ dsc* UdfCallNode::execute(thread_db* tdbb, Request* request) const
1364813648
const Parameter* const returnParam = function->getOutputFields()[0];
1364913649
value->vlu_desc = returnParam->prm_desc;
1365013650

13651-
value->makeImpureDscAddress(*tdbb->getDefaultPool());
13651+
value->makeValueAddress(*tdbb->getDefaultPool());
1365213652

1365313653
if (!impureArea->temp)
1365413654
{

src/dsql/StmtNodes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,7 @@ const StmtNode* DeclareVariableNode::execute(thread_db* tdbb, Request* request,
22482248
variable->vlu_desc = varDesc;
22492249
variable->vlu_desc.clearFlags();
22502250

2251-
variable->makeImpureDscAddress(*tdbb->getDefaultPool());
2251+
variable->makeValueAddress(*tdbb->getDefaultPool());
22522252

22532253
request->req_operation = Request::req_return;
22542254
}

src/jrd/SysFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5545,7 +5545,7 @@ dsc* evlMaxMinValue(thread_db* tdbb, const SysFunction* function, const NestValu
55455545

55465546
DataTypeUtil(tdbb).makeFromList(&impure->vlu_desc, function->name, argTypes.getCount(), argTypes.begin());
55475547

5548-
impure->makeImpureDscAddress(*tdbb->getDefaultPool());
5548+
impure->makeValueAddress(*tdbb->getDefaultPool());
55495549
MOV_move(tdbb, result, &impure->vlu_desc);
55505550

55515551
if (impure->vlu_desc.dsc_dtype == dtype_text)

src/jrd/val.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ struct impure_value
174174
VaryingString* getString(MemoryPool& pool, const T length) = delete; // Prevent dangerous length shrink
175175
VaryingString* getString(MemoryPool& pool, const USHORT length);
176176

177-
void makeImpureDscAddress(MemoryPool& pool);
178-
void allocateTextImpureDscAddress(MemoryPool& pool);
177+
void makeValueAddress(MemoryPool& pool);
178+
void makeTextValueAddress(MemoryPool& pool);
179179
};
180180

181181
// Do not use these methods where dsc_sub_type is not explicitly set to zero.
@@ -246,18 +246,18 @@ inline VaryingString* impure_value::getString(MemoryPool& pool, const USHORT len
246246
return vlu_string;
247247
}
248248

249-
inline void impure_value::makeImpureDscAddress(MemoryPool& pool)
249+
inline void impure_value::makeValueAddress(MemoryPool& pool)
250250
{
251251
if (type_lengths[vlu_desc.dsc_dtype] == 0)
252252
{
253253
// If the data type is any of the string types, allocate space to hold value.
254-
allocateTextImpureDscAddress(pool);
254+
makeTextValueAddress(pool);
255255
}
256256
else
257257
vlu_desc.dsc_address = (UCHAR*) &vlu_misc;
258258
}
259259

260-
inline void impure_value::allocateTextImpureDscAddress(MemoryPool& pool)
260+
inline void impure_value::makeTextValueAddress(MemoryPool& pool)
261261
{
262262
vlu_desc.dsc_address = getString(pool, vlu_desc.dsc_length)->str_data;
263263
}

0 commit comments

Comments
 (0)