[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kmymoney] kmymoney/mymoney/storage: Delimit date strings in initial DB creation SQL. Everywhere els
From: Fernando Vilas <fvilas () iname ! com>
Date: 2013-12-31 22:37:06
Message-ID: E1Vy7vu-0004NA-Fj () scm ! kde ! org
[Download RAW message or body]
Git commit dcf351abba5323e07f222677206e23cd645af118 by Fernando Vilas.
Committed on 31/12/2013 at 22:34.
Pushed by fvilas into branch 'master'.
Delimit date strings in initial DB creation SQL. Everywhere else uses bind variables, \
so this should fix it.
BUG: 301104
M +6 -2 kmymoney/mymoney/storage/mymoneydbdef.cpp
http://commits.kde.org/kmymoney/dcf351abba5323e07f222677206e23cd645af118
diff --git a/kmymoney/mymoney/storage/mymoneydbdef.cpp \
b/kmymoney/mymoney/storage/mymoneydbdef.cpp index e12f90c..bfd1513 100644
--- a/kmymoney/mymoney/storage/mymoneydbdef.cpp
+++ b/kmymoney/mymoney/storage/mymoneydbdef.cpp
@@ -413,9 +413,13 @@ const QString MyMoneyDbDef::generateSQL(const \
KSharedPtr<MyMoneyDbDriver>& drive replace = QString::number
(MyMoneyFile::instance()->storage()->currentFixVersion());
if ((*fit)->name() == "created")
- replace = QDate::currentDate().toString(Qt::ISODate);
+ replace = QLatin1Char('\'')
+ + QDate::currentDate().toString(Qt::ISODate)
+ + QLatin1Char('\'');
if ((*fit)->name() == "lastModified")
- replace = QDate::currentDate().toString(Qt::ISODate);
+ replace = QLatin1Char('\'')
+ + QDate::currentDate().toString(Qt::ISODate)
+ + QLatin1Char('\'');
if ((*fit)->name() == "updateInProgress")
replace = enclose("N");
qs.replace(toReplace, replace);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic