From 690692bc8043553da205209b1286a5a9edb04d0e Mon Sep 17 00:00:00 2001 From: Bill Date: Sun, 13 Nov 2022 04:02:33 +0800 Subject: [PATCH] bug fixes on print --- README.md | 2 +- server/libaquery.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a0ec936..17dd493 100644 --- a/README.md +++ b/README.md @@ -293,7 +293,7 @@ DROP TABLE my_table IF EXISTS Author: Kyle Lahnakoski
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)
+- [Fast C++ CSV Parser](https://github.com/ben-strasser/fast-cpp-csv-parser)
Author: Ben Strasser
License (BSD 3-Clause License): https://github.com/ben-strasser/fast-cpp-csv-parser/blob/master/LICENSE diff --git a/server/libaquery.cpp b/server/libaquery.cpp index 320852a..93a03da 100644 --- a/server/libaquery.cpp +++ b/server/libaquery.cpp @@ -474,7 +474,7 @@ aq_to_chars(void* value, char* buffer) { } template<> -inline char* +char* aq_to_chars(void* value, char* buffer) { const auto src = *static_cast(value); const auto len = strlen(src); @@ -483,7 +483,7 @@ aq_to_chars(void* value, char* buffer) { } template<> -inline char* +char* aq_to_chars(void* value, char* buffer) { const auto& src = *static_cast(value); buffer = to_text(buffer, src.year); @@ -495,7 +495,7 @@ aq_to_chars(void* value, char* buffer) { } template<> -inline char* +char* aq_to_chars(void* value, char* buffer) { const auto& src = *static_cast(value); buffer = to_text(buffer, src.hours); @@ -509,12 +509,12 @@ aq_to_chars(void* value, char* buffer) { } template<> -inline char* +char* aq_to_chars(void* value, char* buffer) { auto& src = *static_cast(value); buffer = aq_to_chars(static_cast(&src.date), buffer); *buffer++ = ' '; - buffer = aq_to_chars(static_cast(&src.time), buffer); + buffer = aq_to_chars(static_cast(&src.time), buffer); return buffer; }