summaryrefslogtreecommitdiff
path: root/test/testdbd.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a segfault in the DBD testcase when the DBD modules were not present.minfrin2008-09-061-7/+19
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@692751 13f79535-47bb-0310-9956-ffa450edef68
* fix some obvious reversals of expected and actual values in invocationstrawick2007-11-181-2/+2
| | | | | | | of ABTS_INT_EQUAL et al git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@596032 13f79535-47bb-0310-9956-ffa450edef68
* Update license headers.jerenkrantz2007-01-151-6/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@496440 13f79535-47bb-0310-9956-ffa450edef68
* Fix the escape implementation in the sqlite dbd back ends.rooneg2006-01-271-0/+10
| | | | | | | | | | | | | | | | | | | | Submitted by: Ronen Mizrahi <ronen tversity.com> Tests by: rooneg * dbd/apr_dbd_sqlite2.c (dbd_sqlite_escape): Use the %q format string. * dbd/apr_dbd_sqlite3.c (dbd_sqlite_escape): Ditto. * test/testdbd.c (test_escape): New test. (test_dbd_generic): Call test_escape. * CHANGES: Note fix. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@372724 13f79535-47bb-0310-9956-ffa450edef68
* Clean up warnings in the dbd tests caused by r231463.rooneg2005-08-141-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/testdbd.c (test_statement, create_table, drop_table, delete_rows, insert_data, select_rows, test_dbd_generic): make the dbd driver argument const. (test_dbd_sqlite2, test_dbd_sqlite3): make the dbd driver variable const. * test/dbd.c (create_table, drop_table, insert_rows, invalid_op, select_sequential, select_random, test_transactions, test_pselect, test_pquery): make dbd driver argument const. (main): make dbd driver variable const. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@232567 13f79535-47bb-0310-9956-ffa450edef68
* * test/testdbd.c: Fix compiler warnings; include apr_psprintfjorton2005-06-021-0/+3
| | | | | | | prototype and don't define functions which aren't used. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@179570 13f79535-47bb-0310-9956-ffa450edef68
* Add SQLite3 support for APR DBD.pquerna2005-05-051-3/+27
| | | | | | | | | | I also added the SQLite3 driver to the test suite. I one test to allow drivers to optionally return a row count for async selects. Submitted By: Rick Keiner <rick_keiner yahoo.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@168388 13f79535-47bb-0310-9956-ffa450edef68
* - Rewrite the DBD tests to use the ABTS framework.pquerna2005-03-221-361/+150
| | | | | | | | | | | - Move old tests to test/dbd.c - sqlite2 support, based on Ryan's patch. Changes to pass the tests and build on my debian machine. Submitted By: Ryan Phillips <ryan trolocsis.com> PR: 34078 git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@158572 13f79535-47bb-0310-9956-ffa450edef68
* Move transaction bookkeeping into the apr_dbd_t object, thus avoidingrooneg2005-02-051-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the need to pass explicit transactions into most of the dbd functions. * include/apr_dbd.h (apr_dbd_driver_t): remove transaction argument from query, select, pvquery, pvselect, pquery, pselect methods. (apr_dbd_query, apr_dbd_select, apr_dbd_pquery, apr_dbd_pselect): remove transaction arguments. * dbd/apr_dbd_pgsql.c (apr_dbd_t): forward declare, cache in-progress transaction. (apr_dbd_transaction_t): store a pointer to the dbd instead of just the PGconn. (dbd_pgsql_select, dbd_pgsql_query, dbd_pgsql_pquery, dbd_pgsql_pvquery, dbd_pgsql_pselect, dbd_pgsql_pvselect): remove transaction arguments, use transaction in the dbd instead. (dbd_pgsql_transaction): use transaction inside dbd, note where we need to handle recursive transactions. (dbd_pgsql_end_transaction): use transaction inside dbd, null it out when we're done with it. * test/testdbd.c (create_table, drop_table, insert_rows, invalid_op, select_sequential, select_random, test_transactions, test_pquery): stop passing transactions to functions that no longer take them. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@151525 13f79535-47bb-0310-9956-ffa450edef68
* * test/testdbd.crooneg2005-02-051-1/+1
| | | | | | | (test_pquery): remove a c++ style commment. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@151522 13f79535-47bb-0310-9956-ffa450edef68
* * include/apr_dbd.hrooneg2005-02-051-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (apr_dbd_transaction, apr_dbd_results, apr_dbd_row, apr_dbd_prepared): in the interest of consistency, add _t to the end of these typedefs. (apr_dbd_driver_t, apr_dbd_transaction_start, apr_dbd_transaction_end, apr_dbd_query, apr_dbd_select, apr_dbd_num_cols, apr_dbd_num_tuples, apr_dbd_get_row, apr_dbd_get_entry, apr_dbd_prepare, apr_dbd_pquery, apr_dbd_pselect): update all uses of those typedefs. * test/testdbd.c: update all uses of those typedefs. * dbd/apr_dbd_pgsql.c: ditto. * dbd/apr_dbd.c: ditto. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@151521 13f79535-47bb-0310-9956-ffa450edef68
* Clean up the DBD tests a bit.rooneg2005-02-051-0/+407
* dbd/apr_dbd_test.c: rename to... * test/testdbd.c: this. * test/Makefile.in: add testdbd to the build, but don't run it as part of the default tests, since it requires some manual setup. * test: add testdbd to svn:ignore. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@151512 13f79535-47bb-0310-9956-ffa450edef68