Corrected example for Windows

This commit is contained in:
Sebastien Rombauts 2012-04-02 21:31:28 +02:00
parent a868afa4e2
commit 4274b662a6

View File

@ -77,7 +77,7 @@ int main (void)
std::string value = query.getColumn(1); // = query.getColumn(1).getText()
int size = query.getColumn(2); // = query.getColumn(2).getInt()
std::cout << "row : (" << id << ", " << value << ", " << size << ")\n";
std::cout << "row : (" << id << ", " << value.c_str() << ", " << size << ")\n";
}
// Reset the query to use it again