forked from qt-creator/qt-creator
Sqlite: Add carray extension from Sqlite and a pointer binding
Change-Id: I96c160514ac80458cbcbff0151c685958de71fdd Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -175,6 +175,17 @@ void BaseStatement::bind(int index, double value)
|
||||
checkForBindingError(resultCode);
|
||||
}
|
||||
|
||||
void BaseStatement::bind(int index, void *pointer)
|
||||
{
|
||||
int resultCode = sqlite3_bind_pointer(m_compiledStatement.get(),
|
||||
index,
|
||||
pointer,
|
||||
"carray",
|
||||
nullptr);
|
||||
if (resultCode != SQLITE_OK)
|
||||
checkForBindingError(resultCode);
|
||||
}
|
||||
|
||||
void BaseStatement::bind(int index, Utils::SmallStringView text)
|
||||
{
|
||||
int resultCode = sqlite3_bind_text(m_compiledStatement.get(),
|
||||
|
||||
Reference in New Issue
Block a user