From 2d420cd72cce2ede8af507f8e5e997af0b279581 Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Thu, 16 Oct 2014 15:30:50 +0200 Subject: [PATCH] ownSql: Always use SQLITE_TRANSIENT More safe. --- src/mirall/ownsql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mirall/ownsql.cpp b/src/mirall/ownsql.cpp index 415e77b0cf..cd36fecf99 100644 --- a/src/mirall/ownsql.cpp +++ b/src/mirall/ownsql.cpp @@ -192,7 +192,7 @@ void SqlQuery::bindValue(int pos, const QVariant& value) // lifetime of string == lifetime of its qvariant const QString *str = static_cast(value.constData()); res = sqlite3_bind_text16(_stmt, pos, str->utf16(), - (str->size()) * sizeof(QChar), SQLITE_STATIC); + (str->size()) * sizeof(QChar), SQLITE_TRANSIENT); } else { // unbound value create a null entry. res = SQLITE_OK;