History log of /PHP-7.4/ext/pdo/pdo.c (Results 101 – 125 of 156)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 97e8c6f4 20-Jul-2005 Ilia Alshanetsky

Proper handling for databases that need to pre-calculate length of large
columns, which is not normally done for performance reasons.


Revision tags: php-5.1.0b3
# 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 ...


Revision tags: php-4.4.0
# 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 ...


# da7d537d 07-Jul-2005 Wez Furlong

populate the new dbh->driver field.
Implement PDO_ATTR_DRIVER_NAME.


# 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 ...


Revision tags: php-4.4.0RC2, php-5.1.0b2
# 5cf2c9dc 23-Jun-2005 Marcus Boerger

- Add +ifdefs to still allow PHP 5.0 builds of PDO
# PDO is a PECL extension and at the moment is still meant to compile on
# both PHP 5.0 and PHP 5.1.


# f47c7848 17-Jun-2005 Dmitry Stogov

Improved PHP extension loading mechanism with support for module dependencies and conflicts


Revision tags: php-4.4.0RC1, php-5.1.0b1, php-5.0.1b1
# fcff6a07 10-Jun-2005 Wez Furlong

"Fix" PECL #4411
SPL is not initialized before PDO, so inheriting from SPL's runtime exception class gives PDO a broken exception class.
We don't currently have a way to express this kind of

"Fix" PECL #4411
SPL is not initialized before PDO, so inheriting from SPL's runtime exception class gives PDO a broken exception class.
We don't currently have a way to express this kind of "soft" dependency in the build system, so I'm disabling inheriting from the runtime exception for now.

show more ...


Revision tags: RELEASE_0_3, php-5.0.4, php-4.3.11
# e499a1c2 29-Mar-2005 Antony Dovgal

fix segfault & buffer overrun when there is no PDO drivers plugged in
(patch by su1d@phpclub.net)


Revision tags: php-5.0.4RC2, php-4.3.11RC2
# dce82da8 22-Mar-2005 Marcus Boerger

- Add function pdo_drivers()


# 73a6a310 22-Mar-2005 Marcus Boerger

- the driver's key name is not zero terminated, hence we need to either
estrNcpy() it or use the driver struct.
- table headers do not support single column mode so change to two cols
-

- the driver's key name is not zero terminated, hence we need to either
estrNcpy() it or use the driver struct.
- table headers do not support single column mode so change to two cols
- there should be only one table header

show more ...


# 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 ...


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.


# de1d8b91 09-Mar-2005 Wez Furlong

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


# fdc3fce3 28-Feb-2005 Marcus Boerger

- Fix missapplied logic inversion


# fef7cb4e 27-Feb-2005 Marcus Boerger

- Disable direct serializing for PHP 5.0


# 03a4a8c1 27-Feb-2005 Marcus Boerger

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


# 2c5b2fc1 26-Feb-2005 Wez Furlong

Alan: moved your fields away, but reserved you a pointer.

Changed PDO::lastInsertId() to have following proto:

string PDO::lastInsertId([string name])

this allows a

Alan: moved your fields away, but reserved you a pointer.

Changed PDO::lastInsertId() to have following proto:

string PDO::lastInsertId([string name])

this allows arbitrary unique identitifers to be returned from the driver.

The optional name parameter is for databases that require additional contextual
information to be able to return the correct identifier. None currently use
it, but pgsql will be on the list of drivers that do.

show more ...


# effe989d 23-Feb-2005 Marcus Boerger

- Show that PDOStatement implements Traversable


# cb9658fe 22-Feb-2005 Marcus Boerger

- Revert signature of PDO:prepare()
old: proto object PDO::prepare(string statment [, array driver_options [, string classname ]])
now: proto object PDO::prepare(string statment [, array

- Revert signature of PDO:prepare()
old: proto object PDO::prepare(string statment [, array driver_options [, string classname ]])
now: proto object PDO::prepare(string statment [, array options])
param 'classname' and and 'ctor_args' are now set through options
using index PDO_ATTR_STATEMENT_CLASS
- Change all deriver_options parameters to 'options' to reflect the fact
that they may contain statement as well as driver specific flags

show more ...


# 3c743e3a 22-Feb-2005 Marcus Boerger

- Allow to derive PDOStatement
- Verify fetch modes
- Add last fetch mode PDO_FETCH_FUNC (only valid inside fetchAll()) that
allows to completley customize the way data is treated on th

- Allow to derive PDOStatement
- Verify fetch modes
- Add last fetch mode PDO_FETCH_FUNC (only valid inside fetchAll()) that
allows to completley customize the way data is treated on the fly

show more ...


# d56ce00b 20-Feb-2005 Marcus Boerger

- Add fetch flag PDO_FETCH_CLASSTYPE


# b788dc9d 19-Feb-2005 Marcus Boerger

- Add fetch mode PDO_FETCH_UNIQUE


# 474fcab6 19-Feb-2005 Marcus Boerger

- Add PDO_FETCH_GROUP to fetchAll()


Revision tags: RELEASE_0_2_4
# 9653864f 18-Feb-2005 Wez Furlong

prep for release


1234567