summaryrefslogtreecommitdiff
path: root/project2/sql/sqlHandleAsVariableType.cpp
blob: ac1ea3b8e37894d275852c569d812d356f9dbc2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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::boolean(bool b) {
	variable = b;
}
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;
}