History log of /PHP-5.5/ext/pdo/pdo_stmt.c (Results 176 – 200 of 282)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
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 ...


# de1d8b91 09-Mar-2005 Wez Furlong

prep package file for release.
fix my favourite typo.
fix compile warnings


# 9c08e3cc 07-Mar-2005 Marcus Boerger

- Update signature


# 6ce9bcc3 28-Feb-2005 Marcus Boerger

- Need to drop ce until engine gets fixed


# fdc3fce3 28-Feb-2005 Marcus Boerger

- Fix missapplied logic inversion


# fef7cb4e 27-Feb-2005 Marcus Boerger

- Disable direct serializing for PHP 5.0


# 6b18b88b 27-Feb-2005 Marcus Boerger

- Allow default fetch mode to contain fetch flags


# 03a4a8c1 27-Feb-2005 Marcus Boerger

- Add some fetch column related capailities
- Add direct (classtype based) unserializing capabilities


12345678910>>...12