1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 09:57:14 +01:00

What is dead may never live.

This commit is contained in:
Sandu Liviu Catalin 2020-04-30 23:27:24 +03:00
parent 1edc1930a3
commit 3e7adb8fea
2 changed files with 4 additions and 2 deletions

View File

@ -1361,7 +1361,7 @@ public:
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
* Index constructor. * Index constructor.
*/ */
SQLiteColumn(StmtRef stmt, Int32 idx) SQLiteColumn(StmtRef stmt, Int32 idx)
: m_Index(idx), m_Handle(std::move(stmt)) : m_Index(idx), m_Handle(std::move(stmt))
{ {
SQMOD_VALIDATE_COLUMN(*this, m_Index); SQMOD_VALIDATE_COLUMN(*this, m_Index);
@ -1379,7 +1379,7 @@ public:
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
* Dynamic constructor. * Dynamic constructor.
*/ */
SQLiteColumn(StmtRef stmt, const Object & column) SQLiteColumn(StmtRef stmt, const Object & column)
: m_Index(-1), m_Handle(std::move(stmt)) : m_Index(-1), m_Handle(std::move(stmt))
{ {
if (!m_Handle) if (!m_Handle)

View File

@ -394,6 +394,8 @@ public:
void Terminate() void Terminate()
{ {
GetValid().Terminate(); GetValid().Terminate();
s_Intervals[m_Slot] = 0;
m_Slot = SQMOD_MAX_ROUTINES;
} }
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------