Sqlite: Improve SqliteStatement column check

We have done it for every getter. Now we do it only once as we ask for
the values. It simplifies the code and the test and could even improve
performance.

Change-Id: Ia7d4a33a77ec7c0a5fda548424fbf8b192f07511
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Marco Bubke
2020-05-27 00:09:19 +02:00
parent 9f9140b196
commit a9a205486d
5 changed files with 73 additions and 96 deletions

View File

@@ -119,13 +119,12 @@ public:
}
};
class InvalidColumnFetched : public Exception
class ColumnCountDoesNotMatch : public Exception
{
public:
InvalidColumnFetched(const char *whatErrorHasHappen)
ColumnCountDoesNotMatch(const char *whatErrorHasHappen)
: Exception(whatErrorHasHappen)
{
}
{}
};
class BindingIndexIsOutOfRange : public Exception