/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc

« back to all changes in this revision

Viewing changes to test/test-main.cc

  • Committer: edam
  • Date: 2010-01-31 21:12:21 UTC
  • Revision ID: edam@waxworlds.org-20100131211221-5xtrhfrchozhk326
- rewrote transaction classes and added transaction_guard
- removed leftover code (sqlite_busy error)
- added tests for transactions

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        sqlite::query( db, "SELECT age FROM pets ORDER BY age DESC LIMIT 1" )
131
131
                .step() >> age; assert( age == 99 );
132
132
 
133
 
        // ok
134
 
        std::cout << "ok\n";
135
133
        return 0;
136
134
}