0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Fixed small documentation bug

This commit is contained in:
Roland Bock 2013-10-02 07:34:37 +02:00
parent a2d23006f0
commit 21c5de2eca

View File

@ -52,7 +52,7 @@ for (const auto& row : db.run(select(foo.name, foo.hasFun).from(foo).where(foo.i
if (row.name.is_null()) if (row.name.is_null())
std::cerr << "name is null, will convert to empty string" << std::endl; std::cerr << "name is null, will convert to empty string" << std::endl;
std::string name = row.name; // string-like fields are implicitly convertible to string std::string name = row.name; // string-like fields are implicitly convertible to string
bool hasFun = hasFun; // bool fields are implicitly convertible to bool bool hasFun = row.hasFun; // bool fields are implicitly convertible to bool
} }
// selecting ALL columns of a table // selecting ALL columns of a table