summaryrefslogtreecommitdiff
path: root/services/StorageService/Field.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'services/StorageService/Field.cpp')
-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;