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
Wez Furlong
687e6ffc58
Add "ATTR_EMULATE_PREPARES" general attribute to replace the custom
...
attributes employed by mysql and postgres drivers.
No functional change.
2006-04-09 08:05:01 +00:00
Antony Dovgal
1ad4dd8795
return FALSE if driver doesn't support quoting (this is what docu says)
...
also fixed PECL bug #6365
2006-03-23 19:01:46 +00:00
Marcus Boerger
6e93f3eb8f
- MFH Proto fixes
2006-03-06 10:00:59 +00:00
Ilia Alshanetsky
6f66a63cda
Fixed bug #36222 (errorInfo in PDOException is always NULL).
2006-01-31 17:20:32 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Ilia Alshanetsky
2e50763315
Fixed memory corruption that affected pdo_sqlite2.
2005-12-24 17:41:04 +00:00
Ilia Alshanetsky
24af85dfe9
Fixed memory leak
2005-12-07 01:29:14 +00:00
foobar
3e669bc950
MFH: nuke php3 legacy
2005-12-06 02:28:41 +00:00
foobar
f58f7f4e67
MFH: fix typo
2005-12-05 22:41:10 +00:00
foobar
66832decc5
MFH
2005-12-05 22:39:03 +00:00
Antony Dovgal
d72347f7bc
MFH: fix #35543 (php crash when calling non existing method of a class that extends PDO)
2005-12-04 11:41:13 +00:00
Wez Furlong
d0ea27b802
API for connection dependent objects to add/del refs to dbh's.
2005-11-28 05:23:22 +00:00
Wez Furlong
bb2f034eff
well, what do you know, it does do something.
2005-11-25 00:20:12 +00:00
Wez Furlong
dfdd1e4caf
CLASSTYPE is an internal flag.
...
Closes PECL #5640 .
2005-11-24 21:46:56 +00:00
Ilia Alshanetsky
8e49bacf95
Fixed bug #35358 (Incorrect error messages for PDO class constants).
2005-11-24 16:21:43 +00:00
Ilia Alshanetsky
4020933726
Fixed bug #35303 (PDO prepare() crashes with invalid parameters).
2005-11-20 20:06:28 +00:00
Antony Dovgal
493c9fcf93
MFH: fix #35293 (PDO segfaults when using persistent connections)
2005-11-19 16:41:08 +00:00
Wez Furlong
dcd7879556
fixes PECL Bug #5589
2005-10-27 03:51:23 +00:00
Wez Furlong
ea544cf38f
Closes PECL Bug #5750 ; uri: dsn is not handled correctly.
...
Patch from curt@php.net
2005-10-23 04:10:20 +00:00
Antony Dovgal
ffe605f2ed
free cls_methods correctly and fix segfault on shutdown
...
(no bug entry and MFB, though..)
2005-10-03 23:27:26 +00:00
Ilia Alshanetsky
9a0bed9863
MFH: Fixed memory leak.
2005-10-03 03:54:06 +00:00
Wez Furlong
612dab64ee
fix type
2005-10-03 00:55:23 +00:00
Wez Furlong
a750f195cd
Fix Bug #34687 ; error information from query() not passed back
2005-10-02 22:11:19 +00:00
Marcus Boerger
991a29cfd6
- MFH PDOException base
2005-10-02 20:38:18 +00:00
Marcus Boerger
ca9dd7d826
- Add PDO::setAttribute(PDO::ATTR_STATEMENT_CLASS)
2005-10-02 20:07:11 +00:00
Wez Furlong
932346c00f
Allow compilation with PHP 5.0.x
...
Closes PECL #5514
2005-10-01 02:48:11 +00:00
Ilia Alshanetsky
4dff36f6b4
MFH: Allow overloading of PDO constructor.
2005-09-20 19:52:24 +00:00
Ilia Alshanetsky
bfe844e41e
MFH: Make PDO use class constants
2005-09-20 00:35:21 +00:00
Wez Furlong
7e762989e7
move pdo_drivers -> PDO::getAvailableDrivers as part of namespacing sweep.
2005-09-18 14:13:08 +00:00
Wez Furlong
efe24c0205
add __sleep and __wakeup functions to prevent serialize/deserialize from being used on PDO objects. Refs PECL #5217
2005-09-10 17:48:45 +00:00
Wez Furlong
664ebfa499
expand oracle null handling compatability by offering the ability to convert
...
NULLs into empty strings as well as the other way around. It still doesn't
help a great deal in the long run, but at least the option is there.
Make sure hash tables are nulled out to avoid double freeing them.
2005-07-12 02:40:59 +00:00
Ilia Alshanetsky
5fe5da90ea
Safer way of allowing 'blank' user/pass.
...
# Thanks Wez.
2005-07-09 02:53:07 +00:00
Ilia Alshanetsky
0b1931a8ff
Fix needed for PostgreSQL driver to allow $user & $pass to be supplied via
...
DSN as NULL.
2005-07-08 23:33:35 +00:00
Wez Furlong
49c1882837
Add a PDO_ATTR_STRINGIFY_FETCHES attribute, which is used to convert integer or
...
floating point values into strings during fetch. This is a compatibility hack
for drivers that return native types rather than string representations.
We use this flag in the test suite to persuade postgres tests to pass.
2005-07-08 04:13:00 +00:00
Wez Furlong
da7d537d49
populate the new dbh->driver field.
...
Implement PDO_ATTR_DRIVER_NAME.
2005-07-07 17:08:01 +00:00
Dmitry Stogov
0eb0b781e0
Fixed memory leaks
2005-07-07 11:19:56 +00:00
Wez Furlong
13ac7169af
and the lesson is, test everything before you commit at 2am
2005-06-11 12:36:12 +00:00
Wez Furlong
f124c2086e
couple of conceptual errors here
2005-06-11 02:50:20 +00:00
Wez Furlong
49e7b3da4c
Fix a dumb bug that would effecively ignore persistent connections and create a
...
new one each time.
Add a hook for persistent connections: it is called when the object goes out of
scope, and offers the driver an opportunity to release per-request scoped data
at the right time.
This hook is used by pdo_sqlite to unregister UDFs, which are dangerous to keep
registered between requests.
2005-06-10 05:47:55 +00:00
Wez Furlong
5c16028eb5
initialize type of function
2005-06-10 04:03:43 +00:00
Marcus Boerger
9b3929a7e9
- Need to make PDO::__construct() final to prevent SEGV it isn't called 1st
2005-05-26 18:36:18 +00:00