| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@692751 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@496440 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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_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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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
|
|
* 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
|