blob: a635feba74cd19346b8fa3d30406fbf6db6c389b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "pch.hpp"
#include "sqlHandleAsVariableType.h"
#include <boost/date_time/posix_time/posix_time.hpp>
void HandleAsVariableType::null() {
variable = Null();
}
void HandleAsVariableType::string(const char * c, size_t l) {
variable = Glib::ustring(c, c + l);
}
void HandleAsVariableType::integer(int64_t i) {
variable = i;
}
void HandleAsVariableType::floatingpoint(double d) {
variable = d;
}
void HandleAsVariableType::timestamp(const struct tm & t) {
variable = boost::posix_time::ptime(boost::posix_time::ptime_from_tm(t));
}
|