Skip to content

Commit

Permalink
converted tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
vimsh committed Jul 31, 2016
1 parent da6f7f7 commit ebc511b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ int main(int argc, char** argv)
stmt.set_int(0, 2);
stmt.set_string(1, "test2");
stmt.execute();
// cursor
// cursor
rs = stmt.execute("select id, txt from test", true);
while (rs.next())
{
cout << rs.column_name(0) << ": " << (rs.is_null(0) ? -1 : rs.get_int(0)) << endl;
cout << rs.column_name(1) << ": " << (rs.is_null(1) ? "NULL" : rs.get_string(1)) << endl;
}
// scrollable cursor
// scrollable cursor
rs = stmt.execute("select id, txt from test", true, true);
while (rs.next())
{
Expand Down

0 comments on commit ebc511b

Please sign in to comment.