summaryrefslogtreecommitdiff
path: root/project2/sql/sqlHandleAsVariableType.cpp
blob: a692a404a6f02513a5cd7e5af5782df3b809ff4c (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 std::string_view s) {
	variable = Glib::ustring(s.begin(), s.end());
}
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;
}