/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: Tim Marston
  • Date: 2014-01-03 16:40:21 UTC
  • Revision ID: tim@ed.am-20140103164021-i6o99h1459xjdq5o
reverted version no. to 0.2dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
                << sqlite::set_index( 1 ) << "bar" << "baz";
75
75
 
76
76
        // test connection command and query factory methods
77
 
        *( conn.make_command( "PRAGMA user_version = 1") ) << sqlite::exec;
78
 
        conn.make_query( "PRAGMA user_version")->step();
 
77
        conn.make_command( "PRAGMA user_version = 12")->step();
 
78
        assert( conn.make_query( "PRAGMA user_version" )->step()
 
79
                .column< int >( 0 ) == 12 );
79
80
 
80
81
        // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
81
82
 
167
168
        sqlite::query( conn, "SELECT age FROM pets ORDER BY age DESC LIMIT 1" )
168
169
                .step() >> age; assert( age == 123 );
169
170
 
170
 
        // text recursive transactions
 
171
        // test recursive transactions
171
172
        {
172
173
                sqlite::transaction_guard< sqlite::recursive_transaction > t1( conn );
173
174
                conn.exec( "UPDATE pets SET age = 66" );