Use proper session flag checks (#1734)

This commit is contained in:
David Markowitz
2025-01-18 19:25:53 -08:00
committed by GitHub
parent d860552776
commit 1b3cdc6d9c
6 changed files with 94 additions and 33 deletions

View File

@@ -165,7 +165,8 @@ public:
bool eof();
void nextRow();
// Returns true if there is another row to read, false otherwise.
bool nextRow();
void finalize();
@@ -207,6 +208,9 @@ public:
int getIntField(int nField, int nNullValue=0);
int getIntField(const char* szField, int nNullValue=0);
sqlite_int64 getInt64Field(int nField, sqlite_int64 nNullValue=0);
sqlite_int64 getInt64Field(const char* szField, sqlite_int64 nNullValue=0);
double getFloatField(int nField, double fNullValue=0.0);
double getFloatField(const char* szField, double fNullValue=0.0);
@@ -218,6 +222,9 @@ public:
void setRow(int nRow);
// Returns true if there is another row to read, false otherwise.
bool nextRow();
void finalize();
private:
@@ -226,6 +233,7 @@ private:
int mnCols;
int mnRows;
bool mbEof;
int mnCurrentRow;
char** mpaszResults;
};