#
cfe1dc3b |
| 22-Jul-2005 |
Wez Furlong |
this looks like a much better fix for refcounting/shutdown in lazy objects.
|
#
88250311 |
| 22-Jul-2005 |
Wez Furlong |
fix leak (ugh, this nuance gets me every time)
|
#
3560bb9c |
| 22-Jul-2005 |
Wez Furlong |
Fixes #33785 for me
|
#
be88f5a9 |
| 18-Jul-2005 |
Wez Furlong |
make a start on a debugging function.
|
Revision tags: php-5.1.0b3 |
|
#
9240c5f5 |
| 12-Jul-2005 |
Wez Furlong |
remember ? -> :pdox mapping so that binds by position can be mapped to names if required.
|
#
664ebfa4 |
| 12-Jul-2005 |
Wez Furlong |
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
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.
show more ...
|
#
b3aa24ff |
| 11-Jul-2005 |
Andrey Hristov |
fix a segfault with the following script: <?php $dbh = new PDO('mysql:dbname=test;host=localhost', "root", "secret"); $what = 1; $stmt = $dbh->prepare('select a, b, c from t123 where
fix a segfault with the following script: <?php $dbh = new PDO('mysql:dbname=test;host=localhost', "root", "secret"); $what = 1; $stmt = $dbh->prepare('select a, b, c from t123 where a=:what'); $stmt->bindParam(1, $what, PDO_PARAM_INT, 12); var_dump($stmt->execute()); var_dump($stmt->fetchObject()); ?>
show more ...
|
Revision tags: php-4.4.0 |
|
#
d3b653e9 |
| 09-Jul-2005 |
Wez Furlong |
Added: proto bool PDOStatement::closeCursor() Closes the cursor, leaving the statement ready for re-execution. The purpose of the function is to free up the connection to the se
Added: proto bool PDOStatement::closeCursor() Closes the cursor, leaving the statement ready for re-execution. The purpose of the function is to free up the connection to the server so that other queries may be issued, but leaving the statement in a state that it can be re-executed. This is implemented either as an optional driver specific method (allowing for maximum efficiency), or as the generic PDO fallback if no driver specific function is installed. The PDO generic fallback is semantically the same as writing the following code in your PHP script: do { while ($stmt->fetch()) ; if (!$stmt->nextRowset()) break; } while (true);
show more ...
|
#
38a02b62 |
| 08-Jul-2005 |
Wez Furlong |
For named-parameter-to-named-parameter rewrites, we need to map the original names to the new names.
|
#
8f31f0cf |
| 08-Jul-2005 |
Wez Furlong |
Fix a shutdown order issue I saw in the pgsql driver. Hope this doesn't mess up something in the OCI driver; I think I've been here before.
|
#
49c18828 |
| 08-Jul-2005 |
Wez Furlong |
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 t
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.
show more ...
|
#
86028ad1 |
| 07-Jul-2005 |
Ilia Alshanetsky |
Return an empty array rather then FALSE in fetchAll() on no results.
|
#
68caaadc |
| 07-Jul-2005 |
Wez Furlong |
Fix bug in bindColumn() for drivers that implement native prepared statements and that use the PDO rewriter to handle non-native parameter syntax.
|
#
0eb0b781 |
| 07-Jul-2005 |
Dmitry Stogov |
Fixed memory leaks
|
#
d4a15826 |
| 03-Jul-2005 |
Wez Furlong |
Add PDO_FETCH_NAMED; closes PECL #4641 by providing a way to access columns by name, even when multiple columns have the same name: $sql = "SELECT 1 a, 2 a, 3 b, 4 c, 5 d, 6 c, 7 a";
Add PDO_FETCH_NAMED; closes PECL #4641 by providing a way to access columns by name, even when multiple columns have the same name: $sql = "SELECT 1 a, 2 a, 3 b, 4 c, 5 d, 6 c, 7 a"; echo "$sql\n"; print_r($db->query($sql)->fetchAll(PDO_FETCH_NAMED)); Array ( [0] => Array ( [a] => Array ( [0] => 1 [1] => 2 [2] => 7 ) [b] => 3 [c] => Array ( [0] => 4 [1] => 6 ) [d] => 5 ) ) Also added two new attributes for use at prepare time; PDO_ATTR_FETCH_TABLE_NAMES and PDO_ATTR_FETCH_CATALOG_NAMES instruct the driver that the names of the columns that they return to PDO should include the table and catalog names respectively. Both attributes may be used together or independently. The catalog, table and column name components should be separated by a . character.
show more ...
|
#
6fd9e5a6 |
| 02-Jul-2005 |
Ilia Alshanetsky |
Fixed memory leak on PDO_FETCH_OBJ.
|
Revision tags: php-4.4.0RC2, php-5.1.0b2, php-4.4.0RC1, php-5.1.0b1, php-5.0.1b1 |
|
#
cf5a6f81 |
| 08-Jun-2005 |
Dmitry Stogov |
Fixed zval_ptr_dtor(&return_value) on uninicialized zval
|
#
def27b99 |
| 17-May-2005 |
Ilia Alshanetsky |
As per PDO meeting on PHP|Tropics fetchSingle is being renamed to fetchColumn and now supports specification of the column to retrieve.
|
#
d30a9ee9 |
| 27-Apr-2005 |
Ilia Alshanetsky |
removed debug code.
|
#
7dd430ff |
| 22-Apr-2005 |
Wez Furlong |
fix bug #32795
|
Revision tags: RELEASE_0_3, php-5.0.4, php-4.3.11 |
|
#
d27be112 |
| 24-Mar-2005 |
Marcus Boerger |
- Fix null handling found by thies
|
Revision tags: php-5.0.4RC2, php-4.3.11RC2 |
|
#
c9108bba |
| 21-Mar-2005 |
Marcus Boerger |
- Simplify code (only implement handlers that are necessary) - Fix handling of read only property 'queryString' - Fix overloading - Move class init code to their defining .c files for sim
- Simplify code (only implement handlers that are necessary) - Fix handling of read only property 'queryString' - Fix overloading - Move class init code to their defining .c files for simplification - Mark class PDORow as final until there's a need to inherit this and someone implements the handlers correct then.
show more ...
|
#
7b2bee1d |
| 19-Mar-2005 |
Marcus Boerger |
- Fix warnings by doing it the Zend way
|
Revision tags: php-5.0.4RC1, php-4.3.11RC1 |
|
#
5248f59d |
| 12-Mar-2005 |
Wez Furlong |
show list of PDO drivers in phpinfo. Highlight a possible problem area; iterator leaks when used in foreach(), at least with sqlite2 driver.
|
#
f7ebff80 |
| 09-Mar-2005 |
Wez Furlong |
"thou shalt not throw exceptions except in really exceptional circumstances." The only allowed places to throw them directly are from within the PDO class constructors or when dealing wi
"thou shalt not throw exceptions except in really exceptional circumstances." The only allowed places to throw them directly are from within the PDO class constructors or when dealing with transaction level attributes, where "hard-failure" is a feature. All other errors should use the PDO error handling mechanism and respect the users selected error mode.
show more ...
|