/[Apache-SVN]/apr/apr-util/tags/1.2.11/dbd/apr_dbd_pgsql.c
ViewVC logotype

Log of /apr/apr-util/tags/1.2.11/dbd/apr_dbd_pgsql.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 595437 - (view) (annotate) - [select for diffs]
Modified Thu Nov 15 20:25:37 2007 UTC (2 years ago) by wrowe
File length: 17562 byte(s)
Diff to previous 591015 (colored)
Tagged 1.2.11

Revision 591015 - (view) (annotate) - [select for diffs]
Modified Thu Nov 1 14:07:19 2007 UTC (2 years ago) by jorton
Original Path: apr/apr-util/branches/1.2.x/dbd/apr_dbd_pgsql.c
File length: 17562 byte(s)
Diff to previous 414126 (colored)
Update licence headers.

Revision 414126 - (view) (annotate) - [select for diffs]
Modified Wed Jun 14 06:55:06 2006 UTC (3 years, 5 months ago) by bojan
Original Path: apr/apr-util/branches/1.2.x/dbd/apr_dbd_pgsql.c
File length: 17415 byte(s)
Diff to previous 412613 (colored)
Merge r413798 and r414125 from trunk to 1.2.x branch.
Original message:
Don't expect variable argument list to end with NULL
for PostgreSQL and SQLite3 DBD drivers. Count instead.

Revision 412613 - (view) (annotate) - [select for diffs]
Modified Wed Jun 7 23:42:01 2006 UTC (3 years, 5 months ago) by bojan
Original Path: apr/apr-util/branches/1.2.x/dbd/apr_dbd_pgsql.c
File length: 17423 byte(s)
Diff to previous 412391 (colored)
Merge r412612 from trunk to 1.2.x branch
Original message: Simplify cleanup run.

Revision 412391 - (view) (annotate) - [select for diffs]
Modified Wed Jun 7 12:33:21 2006 UTC (3 years, 5 months ago) by bojan
Original Path: apr/apr-util/branches/1.2.x/dbd/apr_dbd_pgsql.c
File length: 17455 byte(s)
Diff to previous 412385 (colored)
Merge r412390 from trunk to 1.2.x branch
Original message:
Adjust cleanup_kill calls to new wrappers.

Revision 412385 - (view) (annotate) - [select for diffs]
Modified Wed Jun 7 12:13:09 2006 UTC (3 years, 5 months ago) by bojan
Original Path: apr/apr-util/branches/1.2.x/dbd/apr_dbd_pgsql.c
File length: 17457 byte(s)
Diff to previous 409065 (colored)
Merge r412384 from trunk to 1.2.x branch
Original message:
Don't cast cleanup functions, provide wrappers instead (PgSQL, SQLite3).

Revision 409065 - (view) (annotate) - [select for diffs]
Modified Wed May 24 04:12:03 2006 UTC (3 years, 6 months ago) by bojan
Original Path: apr/apr-util/branches/1.2.x/dbd/apr_dbd_pgsql.c
File length: 17368 byte(s)
Diff to previous 396812 (colored)
Rework r409059 from the trunk to apply to 1.2.x branch.
Correct detection of various databases (PostgreSQL, MySQL, SQLite2/3).
Use mysql_config to help detect required CPPFLAGS/LDFLAGS for MySQL.

Revision 396812 - (view) (annotate) - [select for diffs]
Modified Tue Apr 25 08:31:58 2006 UTC (3 years, 7 months ago) by bojan
Original Path: apr/apr-util/branches/1.2.x/dbd/apr_dbd_pgsql.c
File length: 17238 byte(s)
Diff to previous 394559 (colored)
Check bad transaction state in dbd_pgsql_pquery()/dbd_pgsql_pselect()

Revision 394559 - (view) (annotate) - [select for diffs]
Modified Sun Apr 16 21:19:59 2006 UTC (3 years, 7 months ago) by niq
Original Path: apr/apr-util/branches/1.2.x/dbd/apr_dbd_pgsql.c
File length: 17064 byte(s)
Diff to previous 372442 (colored)
Backport simple fixes to pgsql driver

Revision 372442 - (view) (annotate) - [select for diffs]
Modified Thu Jan 26 05:08:39 2006 UTC (3 years, 10 months ago) by rooneg
Original Path: apr/apr-util/branches/1.2.x/dbd/apr_dbd_pgsql.c
File length: 17026 byte(s)
Diff to previous 232557 (colored)
Merge r349448 into 1.2.x.

Original log message:

Fix args counting in apr_dbd_prepare in case of double-%
(thanks to Chris Darroch for pointing it out)

Revision 232557 - (view) (annotate) - [select for diffs]
Modified Sun Aug 14 00:47:21 2005 UTC (4 years, 3 months ago) by pquerna
Original Path: apr/apr-util/branches/1.2.x/dbd/apr_dbd_pgsql.c
File length: 16913 byte(s)
Diff to previous 231416 (colored)
Branch 1.2.x

Revision 231416 - (view) (annotate) - [select for diffs]
Modified Thu Aug 11 08:51:16 2005 UTC (4 years, 3 months ago) by jorton
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 16913 byte(s)
Diff to previous 231376 (colored)
* include/private/apr_dbd_internal.h: Include public header; remove
duplicate typedefs and use of APR_DBD_INTERNAL.

* include/apr_dbd.h: Unconditionally define the typedefs.

* dbd/apr_dbd_sqlite2.c, dbd/apr_dbd_sqlite3.c, dbd/apr_dbd_pgsql.c:
Include just the private header; remove duplicate typedefs and use of
APR_DBD_INTERNAL.

Revision 231376 - (view) (annotate) - [select for diffs]
Modified Thu Aug 11 02:35:25 2005 UTC (4 years, 3 months ago) by rooneg
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 17028 byte(s)
Diff to previous 231274 (colored)
Be a bit more correct in our handling of varargs in the DBD code.

* include/private/apr_dbd_internal.h
  (apr_dbd_driver_t::pvquery,
   apr_dbd_driver_t::pvselect): take a va_list, not ...

* dbd/apr_dbd_sqlite2.c
  (dbd_sqlite_pvquery,
   dbd_sqlite_pvselect): take a va_list arg.  not that it really matters
   since this just returns ENOTIMPL...

* dbd/apr_dbd_sqlite3.c
  (dbd_sqlite3_pvquery,
   dbd_sqlite3_pvselect): ditto.

* dbd/apr_dbd_pgsql.c
  (dbd_pgsql_pvquery,
   dbd_pgsql_pvselect): take va_list args, as such stop doing va_start and
   va_end, since it's already been done in the upper level wrapper function.

Revision 231274 - (view) (annotate) - [select for diffs]
Modified Wed Aug 10 15:56:53 2005 UTC (4 years, 3 months ago) by niq
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 17110 byte(s)
Diff to previous 155319 (colored)
Remove conditional include from apr_dbd.h.
That means putting it explicitly in to all the drivers.  *sigh*

Revision 155319 - (view) (annotate) - [select for diffs]
Modified Fri Feb 25 11:13:14 2005 UTC (4 years, 9 months ago) by jorton
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 17080 byte(s)
Diff to previous 151526 (colored)
* dbd/apr_dbd_pgsql.c: Pick up apr_sleep() prototype to fix:

dbd/apr_dbd_pgsql.c: In function `dbd_pgsql_get_row':
dbd/apr_dbd_pgsql.c:165: warning: implicit declaration of function `apr_sleep'

Revision 151526 - (view) (annotate) - [select for diffs]
Modified Sat Feb 5 21:00:40 2005 UTC (4 years, 9 months ago) by rooneg
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 17058 byte(s)
Diff to previous 151525 (colored)
* dbd/apr_dbd_pgsql.c
  (dbd_pgsql_transaction): rename to...
  (dbd_pgsql_start_transaction): this, for symmetry with external dbd API.
  (apr_dbd_pgsql_driver): update for rename.

Revision 151525 - (view) (annotate) - [select for diffs]
Modified Sat Feb 5 20:35:36 2005 UTC (4 years, 9 months ago) by rooneg
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 17040 byte(s)
Diff to previous 151521 (colored)
Move transaction bookkeeping into the apr_dbd_t object, thus avoiding
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.

Revision 151521 - (view) (annotate) - [select for diffs]
Modified Sat Feb 5 19:18:47 2005 UTC (4 years, 9 months ago) by rooneg
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 17074 byte(s)
Diff to previous 151517 (colored)
* include/apr_dbd.h
  (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.

Revision 151517 - (view) (annotate) - [select for diffs]
Modified Sat Feb 5 19:00:10 2005 UTC (4 years, 9 months ago) by rooneg
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 17023 byte(s)
Diff to previous 151462 (colored)
Start preparations to move the transaction handling code inside the
apr_dbd_t structure.

* dbd/apr_dbd_pgsql.c
  (apr_dbd_t): make this a structure that contains the connection, as a
   first step towards eventually putting the transaction data in here.
  (apr_dbd_transaction): cache a pointer to a PGconn, not an apr_dbt_t.
  (dbd_pgsql_select,
   dbd_pgsql_error,
   dbd_pgsql_query,
   dbd_pgsql_prepare,
   dbd_pgsql_pquery,
   dbd_pgsql_pselect,
   dbd_pgsql_transaction,
   dbd_pgsql_close,
   dbd_pgsql_check_conn,
   dbd_pgsql_select_db): account for the fact that the apr_dbd_t is no
   longer just a typedef for PGconn.
  (dbd_pgsql_open): ditto, plus catch errors that come from having a
   bogus params string, otherwise we're likely to crash inside PQreset.

Revision 151462 - (view) (annotate) - [select for diffs]
Modified Sat Feb 5 01:32:28 2005 UTC (4 years, 9 months ago) by rooneg
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 16246 byte(s)
Diff to previous 151413 (colored)
* dbd/apr_dbd_pgsql.c: wrap some overly long lines, add some whitespace.

Revision 151413 - (view) (annotate) - [select for diffs]
Modified Fri Feb 4 20:45:35 2005 UTC (4 years, 9 months ago) by jerenkrantz
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 16045 byte(s)
Diff to previous 149553 (colored)
Update copyright year to 2005 and standardize on current copyright owner line.

Revision 149553 - (view) (annotate) - [select for diffs]
Modified Wed Feb 2 19:40:27 2005 UTC (4 years, 9 months ago) by nd
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 16009 byte(s)
Diff to previous 149484 (colored)
svn:eol-style = native

Revision 149484 - (view) (annotate) - [select for diffs]
Modified Wed Feb 2 05:19:34 2005 UTC (4 years, 9 months ago) by niq
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 16009 byte(s)
Diff to previous 149483 (colored)
Fix license notice in apr_dbd stuff

Revision 149483 - (view) (annotate) - [select for diffs]
Added Wed Feb 2 05:14:50 2005 UTC (4 years, 9 months ago) by niq
Original Path: apr/apr-util/trunk/dbd/apr_dbd_pgsql.c
File length: 15676 byte(s)
Introducing apr_dbd stuff

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2