When tizen is set as homepage, the string is broken. 94/145594/2
authorcookie <cookie@samsung.com>
Wed, 23 Aug 2017 04:51:41 +0000 (04:51 +0000)
committerHye Kyoung Hwang <cookie@samsung.com>
Wed, 23 Aug 2017 04:47:56 +0000 (04:47 +0000)
Rleasea 4.0.4

[ Problem ]When tizen is set as homepage in the Setting it displays a blank page
[ Cause ] When sqlite3_bind_text() is called, the string give the garvage value
[ Solution] The 5th param use by SQLITE_TRANSIENT

Change-Id: I4857c5d33f9ae732061879fa72f95d96df8d794d
Signed-off-by: cookie <cookie@samsung.com>
packaging/org.tizen.browser.spec
services/StorageService/SQLDatabase.cpp

index b0579fd2ff51869e51d33d93b90e4b4e0adee8cb..ad53e0fbaa5debdec37829cdc5faf51319690ad0 100755 (executable)
@@ -2,7 +2,7 @@
 
 Name:       org.tizen.browser-profile_mobile
 Summary:    Tizen Open Browser
-Version:    4.0.3
+Version:    4.0.4
 Release:    0
 Provides:   org.tizen.browser = %{version}-%{release}
 Conflicts:  org.tizen.browser-profile_common
index 6fd02552fed003c548ec36d84cbf6b0fecff4fb1..9461111fce4433ea10f756eacd525e9b616e71b7 100755 (executable)
@@ -242,7 +242,7 @@ void SQLQuery::bindText(int paramNo, const char * text, int length)
     M_ASSERT(d->_stmt);
     M_ASSERT(!d->_db_ref.expired());
 
-    int error = sqlite3_bind_text(d->_stmt, paramNo, text, length, NULL);
+    int error = sqlite3_bind_text(d->_stmt, paramNo, text, length, SQLITE_TRANSIENT);
 
     if (error != SQLITE_OK) {
         throw StorageException(sqlite3_errmsg(d->_db), error);
@@ -255,7 +255,7 @@ void SQLQuery::bindText(int paramNo, const std::string& text)
     M_ASSERT(d->_stmt);
     M_ASSERT(!d->_db_ref.expired());
 
-    int error = sqlite3_bind_text(d->_stmt, paramNo, text.c_str(), text.length(), NULL);
+    int error = sqlite3_bind_text(d->_stmt, paramNo, text.c_str(), text.length(), SQLITE_TRANSIENT);
 
     if (error != SQLITE_OK) {
         throw StorageException(sqlite3_errmsg(d->_db), error);