blob: 2583df52f1b6bb8b44732cce16755911fad2279d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#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::interval(const boost::posix_time::time_duration & t) {
variable = t;
}
void HandleAsVariableType::timestamp(const boost::posix_time::ptime & t) {
variable = t;
}
|