fixed compiler warnings
This commit is contained in:
@@ -106,13 +106,13 @@ void postgres_result_reader::read_value(const char * /*id*/, const size_t index,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void postgres_result_reader::read_value(const char * /*id*/, const size_t index, time &/*value*/) {
|
void postgres_result_reader::read_value(const char * /*id*/, const size_t /*index*/, time &/*value*/) {
|
||||||
// if (const auto val = column(index); strlen(val) > 0) {
|
// if (const auto val = column(index); strlen(val) > 0) {
|
||||||
// value = time::parse(val, "%Y-%m-%d %T.%f");
|
// value = time::parse(val, "%Y-%m-%d %T.%f");
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
void postgres_result_reader::read_value(const char * /*id*/, const size_t index, date &/*value*/) {
|
void postgres_result_reader::read_value(const char * /*id*/, const size_t /*index*/, date &/*value*/) {
|
||||||
// if (const auto val = column(index); strlen(val) > 0) {
|
// if (const auto val = column(index); strlen(val) > 0) {
|
||||||
// value.set(val, matador::utils::date_format::ISO8601);
|
// value.set(val, matador::utils::date_format::ISO8601);
|
||||||
// }
|
// }
|
||||||
@@ -144,7 +144,7 @@ void postgres_result_reader::read_value(const char * /*id*/, const size_t index,
|
|||||||
value.assign(column(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& value )
|
||||||
{
|
{
|
||||||
const auto *data = reinterpret_cast<const unsigned char*>(column(index));
|
const auto *data = reinterpret_cast<const unsigned char*>(column(index));
|
||||||
// auto length = PQgetlength(result_, row_index_, static_cast<int>(index));
|
// auto length = PQgetlength(result_, row_index_, static_cast<int>(index));
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ public:
|
|||||||
on_foreign_key(id, x);
|
on_foreign_key(id, x);
|
||||||
}
|
}
|
||||||
template<class Pointer>
|
template<class Pointer>
|
||||||
void on_has_one(const char *id, Pointer &x, const utils::foreign_attributes &/*attr*/) {
|
void on_has_one(const char * /*id*/, Pointer &/*x*/, const utils::foreign_attributes &/*attr*/) {
|
||||||
// on_foreign_key(id, x);
|
// on_foreign_key(id, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user