summaryrefslogtreecommitdiff
path: root/services/StorageService
diff options
context:
space:
mode:
authorcookie <cookie@samsung.com>2020-01-15 05:34:20 -0500
committercookie <cookie@samsung.com>2020-01-16 02:35:48 -0500
commit7fd115737166fe25a6281a1086c357408b8feea9 (patch)
tree102d55f5987687c5dd060676b886e145af7f4150 /services/StorageService
parent86432bb5845952831428e2a42c582a549ae0b1a9 (diff)
downloadbrowser-tizen.tar.gz
browser-tizen.tar.bz2
browser-tizen.zip
Change-Id: I76c2a4754add976c08357d7689611acdc5742c83 Signed-off-by: cookie <cookie@samsung.com>
Diffstat (limited to 'services/StorageService')
-rw-r--r--services/StorageService/Field.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/services/StorageService/Field.cpp b/services/StorageService/Field.cpp
index 912235c0..6aed04af 100644
--- a/services/StorageService/Field.cpp
+++ b/services/StorageService/Field.cpp
@@ -35,8 +35,10 @@ Field::Field()
, sqlDouble(f.getDouble())
{
}
-/*private*/Field & Field::operator=(const Field &)
+/*private*/Field & Field::operator=(const Field & f)
{
+ this->sqlInt = f.sqlInt;
+ this->sqlDouble = f.sqlDouble;
return *this;
}
@@ -55,12 +57,18 @@ Field::Field(double sqlDouble)
}
Field::Field(const std::string & sqlText)
+ : type(SQLITE3_TEXT)
+ , sqlInt(0)
+ , sqlDouble(0)
{
this->sqlText = sqlText;
this->type = SQLITE3_TEXT;
}
Field::Field(std::shared_ptr<tizen_browser::tools::Blob> blob)
+ : type(SQLITE_BLOB)
+ , sqlInt(0)
+ , sqlDouble(0)
{
this->blob = blob;
this->type = SQLITE_BLOB;