[Pkg-owncloud-commits] [owncloud-client] 99/211: ownSql: Always use SQLITE_TRANSIENT
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 25 09:10:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 2d420cd72cce2ede8af507f8e5e997af0b279581
Author: Markus Goetz <markus at woboq.com>
Date: Thu Oct 16 15:30:50 2014 +0200
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 415e77b..cd36fec 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<const QString*>(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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list