aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/sqlite/sqlitebasestatement.cpp
diff options
context:
space:
mode:
authorMarco Bubke <[email protected]>2018-03-29 18:31:57 +0200
committerMarco Bubke <[email protected]>2018-04-04 13:36:32 +0000
commit071a6f90d3223a752b7390125e8fe4429340e870 (patch)
tree629406747d44ae97742b796f1fafc3631c8bbef9 /src/libs/sqlite/sqlitebasestatement.cpp
parent5e42bbc7fb20b74c264af2ff4bf773ac4bac4cb1 (diff)
Sqlite: Throw misuse Exception in SqliteStatement::bind
Change-Id: I014cf7e067bc67c38448bd79a179858c8abb0b5b Reviewed-by: Ivan Donchevskii <[email protected]>
Diffstat (limited to 'src/libs/sqlite/sqlitebasestatement.cpp')
-rw-r--r--src/libs/sqlite/sqlitebasestatement.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/sqlite/sqlitebasestatement.cpp b/src/libs/sqlite/sqlitebasestatement.cpp
index 995f8ffea03..15e4a980436 100644
--- a/src/libs/sqlite/sqlitebasestatement.cpp
+++ b/src/libs/sqlite/sqlitebasestatement.cpp
@@ -293,6 +293,7 @@ void BaseStatement::checkForBindingError(int resultCode) const
case SQLITE_TOOBIG: throwBingingTooBig("SqliteStatement::bind: string or blob are over size limits(SQLITE_LIMIT_LENGTH)!");
case SQLITE_RANGE : throwBindingIndexIsOutOfRange("SqliteStatement::bind: binding index is out of range!");
case SQLITE_NOMEM: throw std::bad_alloc();
+ case SQLITE_MISUSE: throwStatementIsMisused("SqliteStatement::bind: was called inappropriately!");
}
throwUnknowError("SqliteStatement::bind: unknown error has happened");