aboutsummaryrefslogtreecommitdiff
path: root/sensor
diff options
context:
space:
mode:
Diffstat (limited to 'sensor')
-rw-r--r--sensor/main/io.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sensor/main/io.cpp b/sensor/main/io.cpp
index 255b4f5..fa15c96 100644
--- a/sensor/main/io.cpp
+++ b/sensor/main/io.cpp
@@ -336,8 +336,8 @@ void SqlSampleOutputStream::write(SampleRecord const &sample) {
fs += ", ";
vs += ", ";
}
- fs += key->name;
- vs += value.get();
+ fs += "\"" + key->name + "\"";
+ vs += "'" + value.get() + "'";
}
}
} else {
@@ -354,8 +354,8 @@ void SqlSampleOutputStream::write(SampleRecord const &sample) {
// Make sure that the key is registered in the dictionary
dict.indexOf(sample_key->name);
- fs += sample_key->name;
- vs += o.get();
+ fs += "\"" + sample_key->name + "\"";
+ vs += "'" + o.get() + "'";
}
}
}