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:
Marco Bubke
2017-09-18 15:53:51 +02:00
committed by Tim Jenssen
parent c870199823
commit ee5efe06e6
2 changed files with 9 additions and 9 deletions

View File

@@ -188,7 +188,7 @@ void Statement::bind(int index, Utils::SmallStringView text)
index,
text.data(),
int(text.size()),
SQLITE_TRANSIENT);
SQLITE_STATIC);
checkForBindingError(resultCode);
}