Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define __in
- #define __out
- #define __inout
- #define __in_opt
- #define __out_opt
- #define __inout_opt
- #define __in_ecount(x)
- #define __out_ecount(x)
- #define __deref_out_ecount(x)
- #define __inout_ecount(x)
- #define __in_bcount(x)
- #define __out_bcount(x)
- #define __out_bcount_part(x, y)
- #define __deref_out_bcount(x)
- #define __deref_out_range(x, y)
- #define __deref_inout_bcount_part(x, y)
- #define __success(x)
- #define __inout_bcount(x)
- #define __deref_opt_out
- #define __deref_out_opt
- #define __deref_out_ecount_opt(x)
- #define __deref_out
- #define __checkReturn
- #define __callback
- #define __nullterminated
- typedef unsigned char bool;
- typedef unsigned short wchar_t;
- typedef long HRESULT;
- typedef unsigned __int64 ULONG_PTR;
- #define HKCODEGEN
- #include "hkenggen.h"
- #include "hkrtgen.h"
- #include "hkgenlib.h"
- #define ENABLE_INTSAFE_SIGNED_FUNCTIONS
- #include "intsafe.h"
- #ifndef HOTPATCH_BUFFER_SIZE
- #define HOTPATCH_BUFFER_SIZE 256
- typedef struct _PATCH_BUFFER {
- unsigned short PointerIndex;
- unsigned short Fill1;
- unsigned short BufferSize;
- unsigned short Fill2;
- unsigned __int64 Buffer[(HOTPATCH_BUFFER_SIZE - 8) / sizeof(__int64)];
- } PATCH_BUFFER;
- PATCH_BUFFER HotPatchBuffer = {0, 0, HOTPATCH_BUFFER_SIZE, 0};
- #endif
- int memcmp(const void*, const void*, size_t);
- void *memset(void*, int, size_t);
- #pragma deprecated (memcpy)
- #define offsetof(s,f) ((size_t)&(((s*)0)->f))
- struct hkt_1125579048
- {
- long hkc_1;
- };
- struct hkif_112557904800002
- {
- long hknc;
- };
- struct hkis_112557904800002
- {
- long hknc;
- };
- struct HkTableMD* TableTypeMD[1];
- struct HkCollationType HkCollationTypes[];
- struct HkCollationCallback* HkCollationCallbacks[];
- struct var_struct
- {
- unsigned long stmtSavepoint;
- unsigned long yc;
- __int64 txTemporalTime;
- };
- struct cursor_struct_type
- {
- struct HkCursorRange* cursor_1;
- struct HkCursorRange* cursor_2;
- struct HkCursorRange* cursor_3;
- };
- long stmtParentNodeIdArray[6] =
- {
- -1,
- 0,
- 1,
- 1,
- 3,
- 3,
- };
- long executionsInheritanceArray[6] =
- {
- 1,
- 3,
- -1,
- 5,
- -1,
- -1,
- };
- unsigned char didGenerateGetFirstArray[6] =
- {
- 0,
- 0,
- 1,
- 0,
- 1,
- 1,
- };
- unsigned char wasPassedReturnRowArray[6] =
- {
- 0,
- 1,
- 1,
- 1,
- 0,
- 1,
- };
- HRESULT query_fn_6(
- struct HkProcContext* context,
- union HkValue valueArray[],
- unsigned char* nullArray,
- struct var_struct* vars,
- struct cursor_struct_type* cursors)
- {
- HRESULT hr = 0;
- struct hkt_1125579048* rec1_41 = 0;
- struct HkSearchKey* startKeyPtr_41 = 0;
- struct HkSearchKey* endKeyPtr_41 = 0;
- long startKey_41;
- long endKey_41;
- unsigned long intervalCount_43 = 0;
- unsigned long intervalInd_43 = 0;
- struct hkt_1125579048* rec1_48 = 0;
- struct HkSearchKey* startKeyPtr_48 = 0;
- struct HkSearchKey* endKeyPtr_48 = 0;
- long startKey_48;
- long endKey_48;
- unsigned long intervalCount_50 = 0;
- unsigned long intervalInd_50 = 0;
- struct hkt_1125579048* rec1_56 = 0;
- struct HkSearchKey* startKeyPtr_56 = 0;
- struct HkSearchKey* endKeyPtr_56 = 0;
- long startKey_56;
- long endKey_56;
- unsigned long intervalCount_58 = 0;
- unsigned long intervalInd_58 = 0;
- {
- static wchar_t const hkl_7[] =
- {
- 105,
- };
- static wchar_t const hkl_8[] =
- {
- 105,
- };
- static wchar_t const hkl_9[] =
- {
- 105,
- };
- static unsigned char const hkl_10[] =
- {
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_11[] =
- {
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_12[] =
- {
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_13[] =
- {
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_14[] =
- {
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_15[] =
- {
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_16[] =
- {
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_17[] =
- {
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_18[] =
- {
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_19[] =
- {
- 0,
- 0,
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_20[] =
- {
- 0,
- 0,
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_21[] =
- {
- 0,
- 0,
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_22[] =
- {
- 0,
- 0,
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_23[] =
- {
- 0,
- 0,
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_24[] =
- {
- 0,
- 0,
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_25[] =
- {
- 0,
- 0,
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_26[] =
- {
- 0,
- 0,
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_27[] =
- {
- 0,
- 0,
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_28[] =
- {
- 0,
- 0,
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_29[] =
- {
- 0,
- 0,
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_30[] =
- {
- 0,
- 0,
- 0,
- 0,
- 8,
- 0,
- 56,
- 1,
- 105,
- 0,
- };
- static unsigned char const hkl_31[] =
- {
- 0,
- };
- static unsigned char const hkl_32[] =
- {
- 0,
- };
- static wchar_t const* const columnNames[] =
- {
- hkl_7,
- hkl_8,
- hkl_9,
- };
- static unsigned char const columnNameLengths[] =
- {
- 1,
- 1,
- 1,
- };
- static unsigned char const outputTypes[] =
- {
- 0,
- 0,
- 0,
- };
- static unsigned char const outputNullables[] =
- {
- 0,
- 0,
- 0,
- };
- static unsigned char const outputPrecisions[] =
- {
- 0,
- 0,
- 0,
- };
- static unsigned char const outputScales[] =
- {
- 0,
- 0,
- 0,
- };
- static unsigned long outputCollations[] =
- {
- 0,
- 0,
- 0,
- };
- static unsigned short const outputMaxLengths[] =
- {
- 0,
- 0,
- 0,
- };
- static unsigned char const outputStatusBits[] =
- {
- 2,
- 2,
- 2,
- };
- static unsigned char const* const tdsBufs[] =
- {
- hkl_10,
- hkl_11,
- hkl_12,
- hkl_13,
- hkl_14,
- hkl_15,
- hkl_16,
- hkl_17,
- hkl_18,
- hkl_19,
- hkl_20,
- hkl_21,
- hkl_22,
- hkl_23,
- hkl_24,
- hkl_25,
- hkl_26,
- hkl_27,
- hkl_28,
- hkl_29,
- hkl_30,
- };
- static unsigned short const tdsBufLengths[] =
- {
- 8,
- 8,
- 8,
- 8,
- 8,
- 8,
- 8,
- 8,
- 8,
- 10,
- 10,
- 10,
- 10,
- 10,
- 10,
- 10,
- 10,
- 10,
- 10,
- 10,
- 10,
- };
- static unsigned char const hkl_33[] =
- {
- 0,
- 0,
- };
- static unsigned char const* const tdsDataClassificationBufs[] =
- {
- hkl_31,
- hkl_32,
- };
- static unsigned short const tdsDataClassificationBufLengths[] =
- {
- 0,
- 0,
- };
- static struct HkOutputMetadata outputMetadata =
- {
- 34,
- 6,
- 3,
- columnNameLengths,
- columnNames,
- outputTypes,
- outputNullables,
- outputPrecisions,
- outputScales,
- outputMaxLengths,
- outputCollations,
- outputStatusBits,
- 0,
- 0,
- tdsBufs,
- tdsBufLengths,
- 7,
- hkl_33,
- 2,
- tdsDataClassificationBufs,
- tdsDataClassificationBufLengths,
- };
- unsigned __int64 actualExecs[6] =
- {
- 0,
- };
- unsigned __int64 actualRows[6] =
- {
- 0,
- };
- unsigned __int64 actualTicks[6] =
- {
- 0,
- };
- unsigned __int64 actualCpuTicks[6] =
- {
- 0,
- };
- long normalizedStartPrefix_44 = 0;
- long normalizedEndPrefix_44 = 0;
- long normalizedStartPrefix_51 = 0;
- long normalizedEndPrefix_51 = 0;
- long normalizedStartPrefix_59 = 0;
- long normalizedEndPrefix_59 = 0;
- unsigned char result_62;
- unsigned char result_isnull_62;
- __int64 temp_63;
- __int64 temp_66;
- long valueExpr_69 = (-2147483647 - 1);
- long valueExpr_70 = (-2147483647 - 1);
- long valueExpr_71 = (-2147483647 - 1);
- ReportStmtStarted((context->StmtPerf));
- if ((context->IsInTrigger))
- {
- hr = -2113929163;
- {
- CreateError((context->ErrorObject), hr, 0);
- }
- if ((FAILED(hr)))
- {
- goto l_5;
- }
- }
- if (((context->TdsContext)->isNetworkOptimized))
- {
- hr = (SendOptimizedMetadata(context, (&outputMetadata)));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- }
- else
- {
- hr = (SendNonOptimizedMetadata(context, (&outputMetadata)));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- }
- MeasureAndAggregateElapsedTime((context->StmtExecStats), actualTicks, actualCpuTicks, 0, 0, 0);
- goto l_42;
- l_42:;
- (actualExecs[5]) = ((actualExecs[5]) + 1);
- startKey_41 = 0;
- startKeyPtr_41 = ((struct HkSearchKey*)(&startKey_41));
- endKey_41 = 0;
- endKeyPtr_41 = ((struct HkSearchKey*)(&endKey_41));
- intervalCount_43 = 1;
- intervalInd_43 = 0;
- startKeyPtr_41 = 0;
- endKeyPtr_41 = 0;
- normalizedStartPrefix_44 = startKey_41;
- normalizedEndPrefix_44 = endKey_41;
- while ((intervalInd_43 < intervalCount_43))
- {
- hr = (YieldCheck(context, 1, 0));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- hr = (HkCursorRangeGetFirst((cursors->cursor_1), (context->TableVarTransaction), startKeyPtr_41, endKeyPtr_41, 0, 1, 0, ((struct HkRow const**)(&rec1_41))));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- l_45:;
- if ((hr == 0))
- {
- (actualRows[5]) = ((actualRows[5]) + 1);
- MeasureAndAggregateElapsedTime((context->StmtExecStats), actualTicks, actualCpuTicks, 6, 5, 0);
- goto l_39;
- }
- intervalInd_43 = (intervalInd_43 + 1);
- startKey_41 = normalizedStartPrefix_44;
- endKey_41 = normalizedEndPrefix_44;
- }
- MeasureAndAggregateElapsedTime((context->StmtExecStats), actualTicks, actualCpuTicks, 6, 5, 0);
- goto l_36;
- l_46:;
- hr = (HkCursorRangeGetNext((cursors->cursor_1), (context->ErrorObject), ((struct HkRow const**)(&rec1_41))));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- goto l_45;
- l_49:;
- (actualExecs[4]) = ((actualExecs[4]) + 1);
- startKey_48 = 0;
- startKeyPtr_48 = ((struct HkSearchKey*)(&startKey_48));
- endKey_48 = 0;
- endKeyPtr_48 = ((struct HkSearchKey*)(&endKey_48));
- intervalCount_50 = 1;
- intervalInd_50 = 0;
- startKeyPtr_48 = 0;
- endKeyPtr_48 = 0;
- normalizedStartPrefix_51 = startKey_48;
- normalizedEndPrefix_51 = endKey_48;
- while ((intervalInd_50 < intervalCount_50))
- {
- hr = (YieldCheck(context, 1, 0));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- hr = (HkCursorRangeGetFirst((cursors->cursor_2), (context->TableVarTransaction), startKeyPtr_48, endKeyPtr_48, 0, 1, 0, ((struct HkRow const**)(&rec1_48))));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- l_52:;
- if ((hr == 0))
- {
- (actualRows[4]) = ((actualRows[4]) + 1);
- MeasureAndAggregateElapsedTime((context->StmtExecStats), actualTicks, actualCpuTicks, 6, 4, 0);
- goto l_38;
- }
- intervalInd_50 = (intervalInd_50 + 1);
- startKey_48 = normalizedStartPrefix_51;
- endKey_48 = normalizedEndPrefix_51;
- }
- MeasureAndAggregateElapsedTime((context->StmtExecStats), actualTicks, actualCpuTicks, 6, 4, 0);
- goto l_46;
- l_53:;
- hr = (HkCursorRangeGetNext((cursors->cursor_2), (context->ErrorObject), ((struct HkRow const**)(&rec1_48))));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- goto l_52;
- l_39:;
- MeasureAndAggregateElapsedTime((context->StmtExecStats), actualTicks, actualCpuTicks, 6, 3, 0);
- goto l_49;
- l_57:;
- (actualExecs[2]) = ((actualExecs[2]) + 1);
- startKey_56 = 0;
- startKeyPtr_56 = ((struct HkSearchKey*)(&startKey_56));
- endKey_56 = 0;
- endKeyPtr_56 = ((struct HkSearchKey*)(&endKey_56));
- intervalCount_58 = 1;
- intervalInd_58 = 0;
- startKeyPtr_56 = 0;
- endKeyPtr_56 = 0;
- normalizedStartPrefix_59 = startKey_56;
- normalizedEndPrefix_59 = endKey_56;
- while ((intervalInd_58 < intervalCount_58))
- {
- hr = (YieldCheck(context, 1, 0));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- hr = (HkCursorRangeGetFirst((cursors->cursor_3), (context->TableVarTransaction), startKeyPtr_56, endKeyPtr_56, 0, 1, 0, ((struct HkRow const**)(&rec1_56))));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- l_60:;
- if ((hr == 0))
- {
- (actualRows[2]) = ((actualRows[2]) + 1);
- MeasureAndAggregateElapsedTime((context->StmtExecStats), actualTicks, actualCpuTicks, 6, 2, 0);
- goto l_54;
- }
- intervalInd_58 = (intervalInd_58 + 1);
- startKey_56 = normalizedStartPrefix_59;
- endKey_56 = normalizedEndPrefix_59;
- }
- MeasureAndAggregateElapsedTime((context->StmtExecStats), actualTicks, actualCpuTicks, 6, 2, 0);
- goto l_53;
- l_61:;
- hr = (HkCursorRangeGetNext((cursors->cursor_3), (context->ErrorObject), ((struct HkRow const**)(&rec1_56))));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- goto l_60;
- l_38:;
- MeasureAndAggregateElapsedTime((context->StmtExecStats), actualTicks, actualCpuTicks, 6, 1, 0);
- goto l_57;
- l_54:;
- result_62 = 0;
- result_isnull_62 = 0;
- if ((! 0))
- {
- temp_63 = (((__int64)(rec1_41->hkc_1)) + ((__int64)(rec1_56->hkc_1)));
- if ((temp_63 < (-2147483647 - 1)))
- {
- hr = -2113929211;
- {
- hr = (CreateError((context->ErrorObject), hr, 2, 26, 0));
- }
- if ((FAILED(hr)))
- {
- goto l_5;
- }
- }
- if ((temp_63 > 2147483647))
- {
- hr = -2113929212;
- {
- hr = (CreateError((context->ErrorObject), hr, 2, 26, 0));
- }
- if ((FAILED(hr)))
- {
- goto l_5;
- }
- }
- temp_66 = (((__int64)((long)temp_63)) + ((__int64)(rec1_48->hkc_1)));
- if ((temp_66 < (-2147483647 - 1)))
- {
- hr = -2113929211;
- {
- hr = (CreateError((context->ErrorObject), hr, 2, 26, 0));
- }
- if ((FAILED(hr)))
- {
- goto l_5;
- }
- }
- if ((temp_66 > 2147483647))
- {
- hr = -2113929212;
- {
- hr = (CreateError((context->ErrorObject), hr, 2, 26, 0));
- }
- if ((FAILED(hr)))
- {
- goto l_5;
- }
- }
- result_62 = (((long)temp_66) == 3600);
- }
- else
- {
- result_isnull_62 = 1;
- }
- if (((! result_isnull_62) && result_62))
- {
- {
- (actualRows[1]) = ((actualRows[1]) + 1);
- MeasureAndAggregateElapsedTime((context->StmtExecStats), actualTicks, actualCpuTicks, 6, 1, 0);
- goto l_37;
- }
- }
- else
- {
- MeasureAndAggregateElapsedTime((context->StmtExecStats), actualTicks, actualCpuTicks, 6, 1, 0);
- goto l_61;
- }
- l_37:;
- valueExpr_69 = (rec1_41->hkc_1);
- valueExpr_70 = (rec1_56->hkc_1);
- valueExpr_71 = (rec1_48->hkc_1);
- if (((context->TdsContext)->isNetworkOptimized))
- {
- hr = (StartRow(context));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- hr = (SendLong(context, valueExpr_69));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- hr = (SendLong(context, valueExpr_70));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- hr = (SendLong(context, valueExpr_71));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- EndRow(context);
- }
- else
- {
- (((context->HkValuesBuffer)[0]).SignedIntData) = valueExpr_69;
- ((context->NullsBuffer)[0]) = 0;
- (((context->HkValuesBuffer)[1]).SignedIntData) = valueExpr_70;
- ((context->NullsBuffer)[1]) = 0;
- (((context->HkValuesBuffer)[2]).SignedIntData) = valueExpr_71;
- ((context->NullsBuffer)[2]) = 0;
- hr = (SendNonOptimizedOutput(context, 0));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- }
- (actualRows[0]) = ((actualRows[0]) + 1);
- MeasureAndAggregateElapsedTime((context->StmtExecStats), actualTicks, actualCpuTicks, 6, 0, 0);
- goto l_35;
- l_35:;
- goto l_61;
- l_36:;
- if (((context->TdsContext)->isNetworkOptimized))
- {
- EndOptimizedResultSet(context);
- }
- else
- {
- hr = (SendNonOptimizedOutput(context, 1));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- }
- hr = (GenerateStmtStatistics((context->StmtExecStats), actualRows, actualExecs, actualTicks, actualCpuTicks, 6, 0));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_5;
- }
- goto l_5;
- l_5:;
- ReportStmtEnded((context->StmtPerf), 0, hr);
- if ((FAILED(hr)))
- {
- SetLineNumberForError((context->ErrorObject), 6);
- goto l_6;
- }
- }
- goto l_6;
- l_6:;
- return hr;
- }
- struct HkQueryStmtInfo StmtInfoArray[] =
- {
- {
- 374,
- 588,
- 6,
- 4294967295,
- stmtParentNodeIdArray,
- executionsInheritanceArray,
- didGenerateGetFirstArray,
- wasPassedReturnRowArray,
- 6,
- },
- };
- unsigned long TableTypeIds[] =
- {
- 1125579048,
- };
- unsigned char TableTypeInternalTablesNeeded[] =
- {
- 0,
- };
- HRESULT hkp_1045578763(
- struct HkProcContext* context,
- union HkValue valueArray[],
- unsigned char* nullArray)
- {
- struct var_struct varstruct =
- {
- 0,
- 0,
- 0,
- };
- struct var_struct* vars = (&varstruct);
- HRESULT hr = 0;
- void* sacrificialTemp;
- struct cursor_struct_type cursorstruct =
- {
- 0,
- 0,
- 0,
- };
- struct cursor_struct_type* cursors = (&cursorstruct);
- hr = (HkCursorRangeAlloc(((context->TableParams)[0]), 0, 0, 0, (context->ErrorObject), ((struct HkCursorRange**)(&sacrificialTemp)), 0));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_2;
- }
- (cursors->cursor_1) = ((struct HkCursorRange*)sacrificialTemp);
- hr = (HkCursorRangeAlloc(((context->TableParams)[0]), 0, 0, 0, (context->ErrorObject), ((struct HkCursorRange**)(&sacrificialTemp)), 0));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_2;
- }
- (cursors->cursor_2) = ((struct HkCursorRange*)sacrificialTemp);
- hr = (HkCursorRangeAlloc(((context->TableParams)[0]), 0, 0, 0, (context->ErrorObject), ((struct HkCursorRange**)(&sacrificialTemp)), 0));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_2;
- }
- (cursors->cursor_3) = ((struct HkCursorRange*)sacrificialTemp);
- {
- hr = (query_fn_6(context, valueArray, nullArray, vars, cursors));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_3;
- }
- goto l_3;
- l_3:;
- if ((FAILED(hr)))
- {
- SetLineNumberForError((context->ErrorObject), 6);
- goto l_2;
- }
- }
- (vars->yc) = ((vars->yc) + 1);
- ((valueArray[0]).SignedIntData) = 0;
- (nullArray[0]) = 0;
- hr = (YieldCheck(context, (vars->yc), 0));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_2;
- }
- (vars->yc) = 0;
- goto l_2;
- l_2:;
- if ((! (FAILED(hr))))
- {
- }
- if (((cursors->cursor_1) != 0))
- {
- HkCursorRangeFree((cursors->cursor_1));
- }
- if (((cursors->cursor_2) != 0))
- {
- HkCursorRangeFree((cursors->cursor_2));
- }
- if (((cursors->cursor_3) != 0))
- {
- HkCursorRangeFree((cursors->cursor_3));
- }
- return hr;
- }
- HRESULT hkq_1045578763(
- struct HkProcContext* context,
- union HkValue valueArray[],
- unsigned char* nullArray)
- {
- HRESULT hr = 0;
- SkipBytes(context, 15);
- hr = (EndTdsParse(context));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_74;
- }
- return (hkp_1045578763(context, valueArray, nullArray));
- goto l_74;
- l_74:;
- return hr;
- }
- HRESULT hkr_1045578763(
- struct HkProcContext* context,
- union HkValue valueArray[],
- unsigned char* nullArray)
- {
- HRESULT hr = 0;
- hr = (SendReturnStatus(context, ((valueArray[0]).SignedIntData)));
- if ((FAILED(hr)))
- {
- {
- }
- goto l_76;
- }
- goto l_76;
- l_76:;
- return hr;
- }
- struct HkProcInfo ProcInfo =
- {
- hkp_1045578763,
- hkq_1045578763,
- hkr_1045578763,
- 0,
- 0,
- 0,
- 3,
- 0,
- 0,
- 1,
- 1,
- 0,
- 1,
- TableTypeIds,
- TableTypeInternalTablesNeeded,
- TableTypeMD,
- 0,
- 0,
- 0,
- 1,
- 0,
- 2,
- 0,
- 0,
- 1,
- StmtInfoArray,
- 0,
- 0,
- 0,
- 0,
- };
- __declspec(dllexport)
- struct HkProcBindings g_Bindings =
- {
- 0,
- 0,
- 0,
- {
- 0,
- 0,
- 0,
- },
- 1045578763,
- (&ProcInfo),
- 0,
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement