summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-column.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp/odbc-column.cpp')
-rw-r--r--libodbcpp/odbc-column.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libodbcpp/odbc-column.cpp b/libodbcpp/odbc-column.cpp
index 18926f5..f51aad5 100644
--- a/libodbcpp/odbc-column.cpp
+++ b/libodbcpp/odbc-column.cpp
@@ -82,7 +82,7 @@ void
ODBC::CharArrayColumn::apply(DB::HandleField & h) const
{
if (isNull()) return h.null();
- h.string(&data.front(), bindLen);
+ h.string({ data.data(), (std::size_t)bindLen });
}
void
ODBC::TimeStampColumn::apply(DB::HandleField & h) const