forked from qt-creator/qt-creator
Sqlite: Don't copy values for binding
In Sqlite as you bind value you can bind or simply use a reference to the bound values. Because we hold the values anyway we do not copy them. Change-Id: I11c6fa5036ea958c8e48e3a117ad4a002d749c22 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -188,7 +188,7 @@ void Statement::bind(int index, Utils::SmallStringView text)
|
||||
index,
|
||||
text.data(),
|
||||
int(text.size()),
|
||||
SQLITE_TRANSIENT);
|
||||
SQLITE_STATIC);
|
||||
checkForBindingError(resultCode);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user