Skip to content

Instantly share code, notes, and snippets.

@Jookia
Created April 18, 2011 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jookia/925151 to your computer and use it in GitHub Desktop.
Save Jookia/925151 to your computer and use it in GitHub Desktop.
SQLite Test
int stepStatus;
do
{
stepStatus = sqlite3_step(statement);
if(stepStatus == SQLITE_ERROR)
{
cout << "Unable to step statement:\n" <<
sqlite3_errmsg(database) << endl;
return 1;
}
else if(stepStatus == SQLITE_ROW)
{
cout << sqlite3_column_text(statement, 1) << endl;
}
}
while(stepStatus != SQLITE_DONE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment