renamed blob to blob_type_t
This commit is contained in:
@@ -145,7 +145,7 @@ void postgres_result_reader::read_value(const char * /*id*/, const size_t index,
|
||||
value.assign(column(index));
|
||||
}
|
||||
|
||||
void postgres_result_reader::read_value(const char * /*id*/, const size_t index, utils::blob &value) {
|
||||
void postgres_result_reader::read_value(const char * /*id*/, const size_t index, utils::blob_type_t &value) {
|
||||
const auto *data = reinterpret_cast<const unsigned char *>(column(index));
|
||||
|
||||
size_t length;
|
||||
@@ -164,11 +164,11 @@ void set_value(const char *str, utils::value &value) {
|
||||
}
|
||||
|
||||
template<>
|
||||
void set_value<utils::blob>(const char *str, utils::value &value) {
|
||||
void set_value<utils::blob_type_t>(const char *str, utils::value &value) {
|
||||
size_t length;
|
||||
unsigned char *unescaped = PQunescapeBytea(reinterpret_cast<const unsigned char *>(str), &length);
|
||||
|
||||
value = utils::blob(unescaped, unescaped + length);
|
||||
value = utils::blob_type_t(unescaped, unescaped + length);
|
||||
|
||||
PQfreemem(unescaped);
|
||||
}
|
||||
@@ -232,7 +232,7 @@ void postgres_result_reader::read_value(const char * /*id*/, const size_t index,
|
||||
break;
|
||||
}
|
||||
case utils::basic_type::Blob: {
|
||||
set_value<utils::blob>(column(index), val);
|
||||
set_value<utils::blob_type_t>(column(index), val);
|
||||
break;
|
||||
}
|
||||
case utils::basic_type::Unknown:
|
||||
|
||||
Reference in New Issue
Block a user