forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user