blob: f084a14eccda004b8c4a9ba1d4b368d08cdcaaa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#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));
}
|