Commit Graph

162 Commits

Author SHA1 Message Date
Ilia Alshanetsky
24b8bc3489 Removed the in_transaction handler for 5.3 to avoid BC break due to structure change 2010-06-15 11:13:20 +00:00
Ilia Alshanetsky
90906a91e9 Added inTransaction() method to PDO, with specialized support for Postgres 2010-06-10 12:11:19 +00:00
Ilia Alshanetsky
c2e16d3c5b On beginTransaction() reset error state 2010-04-01 12:08:55 +00:00
Sebastian Bergmann
9ba1e81665 sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
Felipe Pena
93a406ac9c - Fixed bug #49174 (crash on queryString set) 2009-12-13 19:53:44 +00:00
Ilia Alshanetsky
51c17c413c Don't ignore the 2nd parameter to PDO's quote() method that identifies the data type 2009-11-20 18:54:08 +00:00
Felipe Pena
b394a75ad5 - Fixed PDORow and PDOStatement crashes when instantiating throught Reflection 2009-10-12 17:09:11 +00:00
Kalle Sommer Nielsen
d8f43d476e MFH: Fix proto 2009-05-02 01:37:33 +00:00
Matteo Beccati
90fb825ad4 MFH:
- Fixed bug #44173 (PDO->query() parameter parsing/checking needs an
  update)
# The changeset is longer than really needed because pdo_stmt.c was
# refactored to remove the "goto"
2009-04-02 16:41:23 +00:00
Felipe Pena
d7c4a27376 MFH: - Fixed bug #47769 (Strange extends PDO) 2009-03-26 12:53:39 +00:00
Johannes Schlüter
162aed0aed MFH: Fix #46542 Extending PDO class with a __call() function doesn't work
as expected
2009-02-17 14:42:26 +00:00
Felipe Pena
d01257ffd9 - Added missing void param check and arginfo 2009-02-13 12:55:38 +00:00
Felipe Pena
f0a96595d0 MFH:
- Fixed bug #43831 ($this gets mangled when extending PDO with persistent connection)
- Fixed bug #45432 (PDO: persistent connection leak)
2009-02-13 02:18:57 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Matt Wilmas
fafa7f2709 Fixed error message typo 2008-12-03 00:10:17 +00:00
Dmitry Stogov
7d4fd3fd38 Fixed bug #46409 (__invoke method called outside of object context when using array_map) 2008-11-27 19:01:23 +00:00
Pierre Joye
c8103324bf - MFH: declaration goes first... 2008-11-13 14:40:06 +00:00
David Coallier
9334bbd650 - After readying Johannes's mail, the conclusion that a "smarter" system
to find out if the return_value had the correct number of elements was
  definitely needed. Simply added a difference to both dbh and stmt to
  make sure that the error info always has 3 elements.

- Bug #44154 (pdo->errorInfo doesn't always return three elements)
- Now pdo->errorInfo() AND stmt->errorInfo() return three elements.

- [DOC] Make sure that not only the pdo->errorInfo() is returning 3 elms, but
  also the PDOStatement object
2008-11-10 18:47:28 +00:00
David Coallier
80e3ed5630 - MFH
- Bug #44154: [DOC] Return 3 elements at all times. If the dbh stmt doesn't have
  an error code we used to return an array with one element. For the sake
  of consistency and verification of returned values at userland we are now
  returning an array with 3 elements. Note the two last elements are null but
  present

- Bug #4413: [DOC] If the error code returned by the DBH is null, we return
  a null value. This is used in order to help with empty error codes.
2008-11-04 18:28:41 +00:00
Felipe Pena
8d03c0de19 - MFH: Fixed bug pecl#9641 (Unable to add driver specific methods to PDOStatement) (patch by Christopher Jones) 2008-10-09 13:00:58 +00:00
Johannes Schlüter
2c98da2d17 MFH Fix #44425 (Extending PDO/MySQL class with a __call() function doesn't work) 2008-09-16 23:35:50 +00:00
Dmitry Stogov
691d4a6999 Fixed uninitialised data 2008-07-25 08:23:07 +00:00
Ilia Alshanetsky
3bcf8a3d00 Added a warning message on pdo::exec() failure in the event of an empty query 2008-04-22 13:01:45 +00:00
Antony Dovgal
57f51ee9a4 remove ze1_compat leftovers 2008-03-18 14:44:35 +00:00
Felipe Pena
84a8bb038a MFH: New way for check void parameters 2008-03-10 22:15:36 +00:00
Ilia Alshanetsky
1a3f7f6450 Fixed bug #44166 (Parameter handling flaw in PDO::getAvailableDrivers()) 2008-03-03 21:12:16 +00:00
Ilia Alshanetsky
2fc9f5928e Fixed bug #44189 (PDO setAttribute() does not properly validate values for
native numeric options)
2008-02-21 13:37:21 +00:00
Felipe Pena
6e712e05ab MFB: Fixed Bug #44159 (Crash: $pdo->setAttribute(PDO::STATEMENT_ATTR_CLASS, NULL)) 2008-02-19 12:13:20 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
David Soria Parra
07487ad0e7 - Fixed bug #43663 (Extending PDO class with a __call() function doesn't work).
CVS
2007-12-30 17:51:35 +00:00
Yiduo (David) Wang
4b4d634cb9 MFH: Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:22:07 +00:00
Dmitry Stogov
6c810b0d4c Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:00:48 +00:00
Ilia Alshanetsky
910850be51 Fixed bug #42643 (CLI segfaults if using ATTR_PERSISTENT). 2007-09-12 18:26:49 +00:00
Hannes Magnusson
2fc92c9172 - Fixed bug #42452 (PDO classes do not expose Reflection API information)
- Fixed tests
2007-08-30 14:06:12 +00:00
Ilia Alshanetsky
39c1705848 Fixed a possible crash inside the constructor 2007-07-16 18:00:18 +00:00
Ilia Alshanetsky
d34bfe5c37 When working with persistent connections re-initialize options on each
connection. Flags like error reporting may differ.
2007-06-28 19:22:52 +00:00
Ilia Alshanetsky
37d1bfed25 Added support for ATTR_TIMEOUT inside pdo_pgsql driver.
Fixed a bug inside PDO's "use persistent" connection detection mechanism
that would trigger connections on "" and "0" values
2007-06-28 03:13:29 +00:00
Ilia Alshanetsky
abffe87d42 Fixed a crash inside PDO when there is more then one instance of a
persistent connection inside a script and PDO object is extended by class
with a destructor
2007-06-27 02:02:18 +00:00
Ilia Alshanetsky
efd7846d34 [DOC] Added PDO::FETCH_KEY_PAIR mode that will fetch a 2 column result set
into an associated array.
2007-05-16 19:33:57 +00:00
Ilia Alshanetsky
7810fc89fa Fixed bug #41215 (setAttribute return code reversed). 2007-04-29 14:47:34 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
44045f8cb1 Fixed bug #38252 (Incorrect PDO error message on invalid default fetch mode). 2006-12-04 02:40:08 +00:00
Ilia Alshanetsky
8d770ee2ef Fixed bug #38535 (memory corruption in pdo_pgsql driver on error retrieval
inside a failed query executed via query() method).
2006-08-21 16:53:50 +00:00
Ilia Alshanetsky
194b309d2d Fixed memory leak with persistent connections 2006-08-07 17:32:13 +00:00
Ilia Alshanetsky
c6ace95236 Fixed bug #37445 (Fixed crash in pdo_mysql resulting from premature object
destruction).
2006-07-31 20:18:11 +00:00
Antony Dovgal
97ef557b97 initialize var 2006-07-27 08:00:54 +00:00
Ilia Alshanetsky
a9c6e4be1e Fixed bug #37709 (Possible crash in PDO::errorCode()). 2006-06-07 03:33:16 +00:00
Antony Dovgal
e5c8f8c59b yet another dummy clone_obj handler to fix problems created by ze1 compat mode 2006-06-06 22:05:56 +00:00
Marcus Boerger
7bbab02633 - MFH
. Fix iterator based access
  . Add new attribute ATTR_DEFAULT_FETCH_MODE: $bdh->setAttribute()
  . Add new fetch mode: FETCH_PROPS_LATE, this fills object member
    variables after calling the constructor (fixes #36428).
2006-05-11 22:43:44 +00:00
Sara Golemon
91999f1175 mfh(r-1.129) Expose PARAM_EVT_* constants 2006-05-03 21:58:38 +00:00