bug fixes on print
This commit is contained in:
@@ -293,7 +293,7 @@ DROP TABLE my_table IF EXISTS
|
||||
Author: Kyle Lahnakoski <br>
|
||||
License (Mozilla Public License 2.0): https://github.com/klahnakoski/mo-sql-parsing/blob/dev/LICENSE
|
||||
|
||||
- [Fast C++ CSV pParser](https://github.com/ben-strasser/fast-cpp-csv-parser) <br>
|
||||
- [Fast C++ CSV Parser](https://github.com/ben-strasser/fast-cpp-csv-parser) <br>
|
||||
Author: Ben Strasser <br>
|
||||
License (BSD 3-Clause License): https://github.com/ben-strasser/fast-cpp-csv-parser/blob/master/LICENSE
|
||||
|
||||
|
||||
@@ -474,7 +474,7 @@ aq_to_chars<bool>(void* value, char* buffer) {
|
||||
}
|
||||
|
||||
template<>
|
||||
inline char*
|
||||
char*
|
||||
aq_to_chars<char*>(void* value, char* buffer) {
|
||||
const auto src = *static_cast<char**>(value);
|
||||
const auto len = strlen(src);
|
||||
@@ -483,7 +483,7 @@ aq_to_chars<char*>(void* value, char* buffer) {
|
||||
}
|
||||
|
||||
template<>
|
||||
inline char*
|
||||
char*
|
||||
aq_to_chars<types::date_t>(void* value, char* buffer) {
|
||||
const auto& src = *static_cast<types::date_t*>(value);
|
||||
buffer = to_text(buffer, src.year);
|
||||
@@ -495,7 +495,7 @@ aq_to_chars<types::date_t>(void* value, char* buffer) {
|
||||
}
|
||||
|
||||
template<>
|
||||
inline char*
|
||||
char*
|
||||
aq_to_chars<types::time_t>(void* value, char* buffer) {
|
||||
const auto& src = *static_cast<types::time_t*>(value);
|
||||
buffer = to_text(buffer, src.hours);
|
||||
@@ -509,12 +509,12 @@ aq_to_chars<types::time_t>(void* value, char* buffer) {
|
||||
}
|
||||
|
||||
template<>
|
||||
inline char*
|
||||
char*
|
||||
aq_to_chars<types::timestamp_t>(void* value, char* buffer) {
|
||||
auto& src = *static_cast<types::timestamp_t*>(value);
|
||||
buffer = aq_to_chars<types::date_t>(static_cast<void*>(&src.date), buffer);
|
||||
*buffer++ = ' ';
|
||||
buffer = aq_to_chars<types::date_t>(static_cast<void*>(&src.time), buffer);
|
||||
buffer = aq_to_chars<types::time_t>(static_cast<void*>(&src.time), buffer);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user