diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-12-07 20:49:21 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-12-07 20:49:21 +0100 |
commit | 4707a97b30ad01e615c26782940fae4072497cd1 (patch) | |
tree | 1196d195876fb1d015be3a923cf971c5405e947d /tests/psql | |
parent | dd574ba3eabee4f9f8661ea21619b6352cb9a935 (diff) | |
download | crawler-4707a97b30ad01e615c26782940fae4072497cd1.tar.gz crawler-4707a97b30ad01e615c26782940fae4072497cd1.tar.bz2 |
fixed sqlite and curl tests
Diffstat (limited to 'tests/psql')
-rw-r--r-- | tests/psql/test2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/psql/test2.cpp b/tests/psql/test2.cpp index 852f257..4a5ae7e 100644 --- a/tests/psql/test2.cpp +++ b/tests/psql/test2.cpp @@ -16,11 +16,11 @@ int main( ) { work t( c, "test transaction" ); t.exec( "create table test( a integer, b integer)" ); + c.prepare( "insertTestStmt", + "insert into test(a,b) values($1,$2)" ) + ( "integer", prepare::treat_direct ) + ( "integer", prepare::treat_direct ); for( unsigned int i = 0; i < 1000; i++ ) { - c.prepare( "insertTestStmt", - "insert into test(a,b) values($1,$2)" ) - ( "integer", prepare::treat_direct ) - ( "integer", prepare::treat_direct ); t.prepared( "insertTestStmt" )(i)(i).exec( ); } |