renamed timestamp to timestamp_type_t
This commit is contained in:
@@ -147,11 +147,11 @@ void data_type_traits<time_type_t>::bind_value(attribute_writer &binder, const s
|
||||
binder.write_value(index, value);
|
||||
}
|
||||
|
||||
void data_type_traits<timestamp>::read_value(attribute_reader &reader, const char *id, const size_t index, timestamp &value) {
|
||||
void data_type_traits<timestamp_type_t>::read_value(attribute_reader &reader, const char *id, const size_t index, timestamp_type_t &value) {
|
||||
reader.read_value(id, index, value);
|
||||
}
|
||||
|
||||
void data_type_traits<timestamp>::bind_value(attribute_writer &binder, const size_t index, timestamp &value) {
|
||||
void data_type_traits<timestamp_type_t>::bind_value(attribute_writer &binder, const size_t index, timestamp_type_t &value) {
|
||||
binder.write_value(index, value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ void initialize_by_basic_type(const basic_type type, database_type &val) {
|
||||
val.emplace<time_type_t>();
|
||||
break;
|
||||
case basic_type::DateTime:
|
||||
val.emplace<timestamp>();
|
||||
val.emplace<timestamp_type_t>();
|
||||
break;
|
||||
case basic_type::Blob:
|
||||
val.emplace<blob_type_t>();
|
||||
|
||||
@@ -77,7 +77,7 @@ void attribute_string_writer::write_value(size_t /*pos*/, const utils::time_type
|
||||
result_ = "'" + dialect_.prepare_literal(utils::to_string(x)) + "'";
|
||||
}
|
||||
|
||||
void attribute_string_writer::write_value(size_t /*pos*/, const utils::timestamp &/*x*/) {
|
||||
void attribute_string_writer::write_value(size_t /*pos*/, const utils::timestamp_type_t &/*x*/) {
|
||||
}
|
||||
|
||||
void attribute_string_writer::write_value(size_t pos, const char *x) {
|
||||
|
||||
@@ -69,7 +69,7 @@ void value_extractor::write_value(size_t /*pos*/, const utils::time_type_t &x) {
|
||||
values_.emplace_back(x);
|
||||
}
|
||||
|
||||
void value_extractor::write_value(size_t /*pos*/, const utils::timestamp &x) {
|
||||
void value_extractor::write_value(size_t /*pos*/, const utils::timestamp_type_t &x) {
|
||||
values_.emplace_back(x);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user