summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-08-28 16:58:08 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-08-28 16:58:08 +0200
commit30b7a7c89a8fd0816fb32dc56916d5d5d8ee53b3 (patch)
tree3da74426a036283dd4396c8c8cd49317ea591f0c
parentc6f5f7219aeffa390ebb4d82831930da02250e86 (diff)
downloadsqlitexx-30b7a7c89a8fd0816fb32dc56916d5d5d8ee53b3.tar.gz
sqlitexx-30b7a7c89a8fd0816fb32dc56916d5d5d8ee53b3.tar.bz2
trying qtcreator
-rw-r--r--tests/test9.MUST2
-rw-r--r--tests/test9.cpp18
2 files changed, 13 insertions, 7 deletions
diff --git a/tests/test9.MUST b/tests/test9.MUST
index e69de29..f4f0227 100644
--- a/tests/test9.MUST
+++ b/tests/test9.MUST
@@ -0,0 +1,2 @@
+creating DB..
+connection object is sqlite3xx::connection(test9.db)
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
+*/