Skip to content

Commit 7445aae

Browse files
author
Artyom Abakumov
committed
Use better names for TypeClause blr generation methods
1 parent 8cbc03f commit 7445aae

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/dsql/DsqlCompilerScratch.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,20 +272,20 @@ void DsqlCompilerScratch::putField(const TypeClause& type, bool useSubType, bool
272272
{
273273
if (type.typeOfTable.object.hasData())
274274
{
275-
putFieldName<true>(type, useExplicitCollate);
275+
putTypeName<true>(type, useExplicitCollate);
276276
}
277277
else
278278
{
279-
putFieldName<false>(type, useExplicitCollate);
279+
putTypeName<false>(type, useExplicitCollate);
280280
}
281281
return;
282282
}
283283

284284
// Maybe it is possible to use GEN_descriptor here?
285-
putFieldType(type, useSubType);
285+
putDtype(type, useSubType);
286286
}
287287

288-
void DsqlCompilerScratch::putFieldType(const TypeClause& type, const bool useSubType)
288+
void DsqlCompilerScratch::putDtype(const TypeClause& type, const bool useSubType)
289289
{
290290
switch (type.dtype)
291291
{
@@ -332,7 +332,7 @@ void DsqlCompilerScratch::putFieldType(const TypeClause& type, const bool useSub
332332
}
333333

334334
template<bool THasTableName>
335-
void DsqlCompilerScratch::putFieldName(const TypeClause& type, const bool useExplicitCollate)
335+
void DsqlCompilerScratch::putTypeName(const TypeClause& type, const bool useExplicitCollate)
336336
{
337337
struct BlrNameSet
338338
{

src/dsql/DsqlCompilerScratch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ class DsqlCompilerScratch : public BlrDebugWriter
298298
void putField(const TypeClause& type, bool useSubType, bool useExplicitCollate);
299299

300300
template<bool THasTableName>
301-
void putFieldName(const TypeClause& type, const bool useExplicitCollate);
301+
void putTypeName(const TypeClause& type, const bool useExplicitCollate);
302302

303-
void putFieldType(const TypeClause& type, const bool useSubType);
303+
void putDtype(const TypeClause& type, const bool useSubType);
304304

305305
dsql_dbb* dbb = nullptr; // DSQL attachment
306306
jrd_tra* transaction = nullptr; // Transaction

0 commit comments

Comments
 (0)