/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-07-23 12:57:07 UTC
  • Revision ID: edam@waxworlds.org-20100723125707-qu9jk9vvg2uewx7t
- cleaned up test-main
- fixed comment type
- made sqlite::exec() throw instead of returning sqlite error code

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
 
141
141
                sqlite::query( db, "SELECT age FROM pets ORDER BY age DESC LIMIT 1" )
142
142
                        .step() >> age; assert( age == 66 );
143
 
 
144
 
                //t1.commit();
145
143
        }
146
144
        sqlite::query( db, "SELECT age FROM pets ORDER BY age DESC LIMIT 1" )
147
145
                .step() >> age; assert( age == 123 );