Fix issue in SqlResult. We might want to revise this later.

This commit is contained in:
RioMcBoo
2024-02-01 23:59:28 +01:00
committed by Fabian
parent 1f76b67d24
commit 29b6d2c41e
+2 -5
View File
@@ -19,11 +19,6 @@ namespace Framework.Database
NextRow();
}
~SQLResult()
{
_reader = null;
}
public T Read<T>(int column)
{
if (_reader.IsDBNull(column))
@@ -130,6 +125,8 @@ namespace Framework.Database
return true;
_reader.Close();
_reader = null;
return false;
}
}