Commit 7391284 1 parent b078b5b commit 7391284 Copy full SHA for 7391284
File tree 4 files changed +2
-38
lines changed
compiler/extensions/cpp/freemarker
test/language/sql_tables/cpp
4 files changed +2
-38
lines changed Original file line number Diff line number Diff line change 7
7
<#return false >
8
8
</#function >
9
9
10
- <#function sql_table_has_blob_field fields >
11
- <#list fields as field >
12
- <#if field.sqlTypeData.isBlob >
13
- <#return true >
14
- </#if >
15
- </#list >
16
- <#return false >
17
- </#function >
18
-
19
10
<#function sql_db_has_without_rowid_table fields >
20
11
<#list fields as field >
21
12
<#if field.isWithoutRowIdTable >
Original file line number Diff line number Diff line change 25
25
<@namespace_begin package.path/ >
26
26
27
27
<#assign needsParameterProvider=explicitParameters?has_content/ >
28
- <#assign hasBlobField=sql_table_has_blob_field(fields)/ >
29
28
<#if withValidationCode >
30
29
<#assign hasPrimaryKeyField=false/ >
31
30
<#list fields as field >
@@ -697,10 +696,6 @@ void ${name}::writeRow(<#if needsParameterProvider>IParameterProvider& parameter
697
696
<#if needsChildrenInitialization >
698
697
row.initializeChildren(<#if needsParameterProvider >parameterProvider</#if >);
699
698
700
- </#if >
701
- <#if hasBlobField >
702
- row.initializeOffsets();
703
-
704
699
</#if >
705
700
int result;
706
701
@@ -897,18 +892,6 @@ void ${name}::Row::initializeChildren(<#if needsParameterProvider>IParameterProv
897
892
}
898
893
</#if >
899
894
</#list >
900
- }
901
- </#if >
902
- <#if hasBlobField >
903
-
904
- void ${name} ::Row::initializeOffsets()
905
- {
906
- <#list fields as field >
907
- <#if field.sqlTypeData.isBlob >
908
- if (<@sql_field_member_name field/ >)
909
- <@sql_field_member_name field/ >->initializeOffsets();
910
- </#if >
911
- </#list >
912
895
}
913
896
</#if >
914
897
</#if >
Original file line number Diff line number Diff line change 27
27
<@namespace_begin package.path/ >
28
28
29
29
<#assign needsParameterProvider=explicitParameters?has_content/ >
30
- <#assign hasBlobField=sql_table_has_blob_field(fields)/ >
31
30
<#if withValidationCode >
32
31
<#assign hasNonVirtualField=sql_table_has_non_virtual_field(fields)/ >
33
32
</#if >
@@ -233,17 +232,6 @@ public:
233
232
void initializeChildren(<#if needsParameterProvider >IParameterProvider& parameterProvider</#if >);
234
233
235
234
</#if >
236
- <#if hasBlobField >
237
- <#if withCodeComments >
238
- /**
239
- * Initializes offsets in all blob fields of the table.
240
- *
241
- * This method sets offsets in all blob fields recursively.
242
- */
243
- </#if >
244
- void initializeOffsets();
245
-
246
- </#if >
247
235
</#if >
248
236
private:
249
237
<#if hasImplicitParameters >
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ class BlobOffsetsParamTableTest : public ::testing::Test
53
53
vector_type<uint32_t >& array = parameterizedBlob.getArray ();
54
54
for (uint32_t i = 0 ; i < array_size; ++i)
55
55
array.push_back (i);
56
+ parameterizedBlob.initialize (row.getOffsetsHolder ());
57
+ parameterizedBlob.initializeOffsets ();
56
58
}
57
59
58
60
static void fillBlobOffsetsParamTableRows (vector_type<BlobOffsetsParamTable::Row>& rows)
You can’t perform that action at this time.
0 commit comments