Added Statement::getColumnCount() and commented out the throw specifications (they are not usefull)

This commit is contained in:
Sebastien Rombauts
2012-03-31 17:45:40 +02:00
parent abc1f7bfa3
commit 0a1520ced0
5 changed files with 35 additions and 24 deletions

View File

@@ -11,6 +11,7 @@ int main (void)
// Compile a SQL query, containing one parameter (index 1)
SQLite::Statement query(db, "SELECT * FROM test WHERE size>?");
std::cout << "SQLite statement compiled (" << query.getColumnCount () << " collumns in the result)\n";
// Bind an integer value "6" to the first parameter of the SQL query
query.bind(1, 6);