summaryrefslogtreecommitdiff
path: root/lib/streamSupport.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-07-05 19:29:56 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-07-05 19:29:56 +0100
commitc06235b7581c58402f477b4642565dbcfcae9a53 (patch)
tree05fc10f1e92c18d0a764affceabfbd4ae80e4f33 /lib/streamSupport.cpp
parentSupport copying exist table data (diff)
downloadmygrate-c06235b7581c58402f477b4642565dbcfcae9a53.tar.bz2
mygrate-c06235b7581c58402f477b4642565dbcfcae9a53.tar.xz
mygrate-c06235b7581c58402f477b4642565dbcfcae9a53.zip
Handy operator to get a string_view of a MARIADB_STRING
Diffstat (limited to 'lib/streamSupport.cpp')
-rw-r--r--lib/streamSupport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/streamSupport.cpp b/lib/streamSupport.cpp
index 2665b98..f3c88cf 100644
--- a/lib/streamSupport.cpp
+++ b/lib/streamSupport.cpp
@@ -18,7 +18,7 @@ namespace std {
std::ostream &
operator<<(std::ostream & s, const MARIADB_STRING & str)
{
- return s << std::string_view(str.str, str.length);
+ return s << *str;
}
std::ostream &