summaryrefslogtreecommitdiff
path: root/lib/input
diff options
context:
space:
mode:
Diffstat (limited to 'lib/input')
-rw-r--r--lib/input/mysqlRecordSet.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/input/mysqlRecordSet.cpp b/lib/input/mysqlRecordSet.cpp
index 71c5148..9eec30f 100644
--- a/lib/input/mysqlRecordSet.cpp
+++ b/lib/input/mysqlRecordSet.cpp
@@ -51,12 +51,14 @@ namespace MyGrate::Input {
case MYSQL_TYPE_STRING:
case MYSQL_TYPE_JSON:
case MYSQL_TYPE_ENUM:
- return std::make_unique<ResultDataT<std::string_view>>(b, f);
case MYSQL_TYPE_TINY_BLOB:
case MYSQL_TYPE_MEDIUM_BLOB:
case MYSQL_TYPE_LONG_BLOB:
case MYSQL_TYPE_BLOB:
- return std::make_unique<ResultDataT<Blob>>(b, f);
+ if (f.charsetnr == 63)
+ return std::make_unique<ResultDataT<Blob>>(b, f);
+ else
+ return std::make_unique<ResultDataT<std::string_view>>(b, f);
case MAX_NO_FIELD_TYPES:
case MYSQL_TYPE_BIT:
case MYSQL_TYPE_SET: