diff options
Diffstat (limited to 'tests/test9.cpp')
-rw-r--r-- | tests/test9.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/tests/test9.cpp b/tests/test9.cpp index b0d36b1..af4a035 100644 --- a/tests/test9.cpp +++ b/tests/test9.cpp @@ -33,13 +33,20 @@ using namespace std; int main( ) { (void)unlink( "test9.db" ); + + try { + cout << "creating DB.." << endl; + connection c( "test9.db" ); + cout << "connection object is " << c << endl; + + c.exec( "create table x( x integer )" ); + } catch( sql_error& e ) { + cerr << e.msg( ) << ": " << e.query( ) << endl; + } } /* try { - cout << "creating DB.." << endl; - connection c( "test9.db" ); - cout << "connection object is " << c << endl; cout << "starting transaction.." << endl; work wc( c, "create" ); @@ -96,8 +103,5 @@ int main( ) { wq.commit( ); cout << "end." << endl; - } catch( sql_error& e ) { - cerr << e.msg( ) << ": " << e.query( ) << endl; - } } -*/
\ No newline at end of file +*/ |