23 #include <odb/pgsql/traits.hxx>
24 #include <odb/sqlite/traits.hxx>
53 std::string str_rep(b.data(), n);
61 static void set_image(details::buffer &b, std::size_t &n,
bool &is_null,
69 if (str_rep.size() > b.capacity())
70 b.capacity(str_rep.length());
71 std::memcpy(b.data(), str_rep.data(), str_rep.length());
93 std::string str_rep(b.data(), n);
101 static void set_image(details::buffer &b, std::size_t &n,
bool &is_null,
109 if (str_rep.size() > b.capacity())
110 b.capacity(str_rep.length());
111 std::memcpy(b.data(), str_rep.data(), str_rep.length());