History log of /PHP-8.1/ext/pdo/pdo.c (Results 126 – 150 of 161)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 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

# ef2b59f7 13-Feb-2005 Marcus Boerger

- Expand tests to have it work inside PHP 5.0

# 746d5490 13-Feb-2005 Marcus Boerger

- Use runtimeException as base if present (synch with other dbs)

Revision tags: RELEASE_0_2_3
# 0be93c95 13-Feb-2005 Wez Furlong

prep for release

Revision tags: RELEASE_0_2_2
# 1f06eb1c 11-Feb-2005 Wez Furlong

update in anticipation of a release later tonight

Revision tags: RELEASE_0_2_1
# 69cbb7f9 10-Feb-2005 Wez Furlong

prep for release

# 94d5261f 09-Feb-2005 Wez Furlong

cosmetic changes

Revision tags: RELEASE_0_2
# 5a2cb415 09-Feb-2005 Wez Furlong

update ready for release
# includes big hack to help guide people into running "make install" so
# that the headers get installed; works around a pear bug.

# 36e3ea8c 07-Feb-2005 Wez Furlong

add input/output parameter type flag

# 81664bd2 12-Jan-2005 Wez Furlong

Remove bogus scroll attribute.
Expose cursor constants to the script

# dd842e4b 12-Jan-2005 Wez Furlong

API support for scrollable cursors

# 6e0d8dd0 07-Jan-2005 Wez Furlong

implement SQLSTATE style error codes.
Allow drivers to add methods to dbh and stmt objects
(note that we can't use a class, because the use only sees the PDO class).
Clarify the api sligh

implement SQLSTATE style error codes.
Allow drivers to add methods to dbh and stmt objects
(note that we can't use a class, because the use only sees the PDO class).
Clarify the api slightly:
PDO::exec() is used for one-shot queries that don't return rows
PDO::query() is a convenience function for returning a rowset without
having to go through the steps of preparing and executing.

show more ...

Revision tags: php-5.0.3, php-4.3.10, SQLITE_4_3_20041227, php-5.0.3RC2, php-4.3.10RC2, php-5.0.3RC1, php-4.3.10RC1
# 35b00ffd 27-Oct-2004 Wez Furlong

Synopsis:

PDOStatement::setFetchMode()
reset default fetch() mode for a statement to PDO_FETCH_BOTH

PDOStatement::setFetchMode(PDO_FETCH_NUM)
PDOStatement::setFetchM

Synopsis:

PDOStatement::setFetchMode()
reset default fetch() mode for a statement to PDO_FETCH_BOTH

PDOStatement::setFetchMode(PDO_FETCH_NUM)
PDOStatement::setFetchMode(PDO_FETCH_ASSOC)
PDOStatement::setFetchMode(PDO_FETCH_BOTH)
PDOStatement::setFetchMode(PDO_FETCH_OBJ)
set default fetch() mode for a statement.

PDOStatement::setFetchMode(PDO_FETCH_COLUMN, int colno)
set default fetch() mode to retrieve colno-th column on each fetch() call.

PDOStatement::setFetchMode(PDO_FETCH_CLASS, string classname [, array ctor args])
set default fetch() mode to create an instance of classname,
calling it's ctor, passing the optional ctor args.
The names of the columns in the result set will be used as property names on
the object instance. PPP rules apply.

[NOTE: calling ctor is not yet implemented]
[TODO: this might crash PHP for persistent PDO handles]

PDOStatement::setFetchMode(PDO_FETCH_INTO, object obj)
Similar to PDO_FETCH_CLASS, except that each iteration will update the
supplied object properties.

[TODO: this might crash PHP for persistent PDO handles]

The default fetch() mode is used when no parameters are passed to
PDOStatement::fetch(). When using a statement in an iterator context,
PDOStatement::fetch() is called implicitly on each iteration.

object PDO::queryAndIterate(string sql, <PDOStatement::setFetchMode args>)
This is semantically equivalent to:

$stmt = $pdo->prepare($sql);
$stmt->execute();
$stmt->setFetchMode($args);
return $stmt;


Example/Intended usage:

/* fetch an array with numeric and string keys */
foreach ($pdo->queryAndIterate("select NAME, VALUE from test") as $row) {
debug_zval_dump($row);
}

/* fetch the value of column 1 into $row on each iteration */
foreach ($pdo->queryAndIterate("select NAME, VALUE from test",
PDO_FETCH_COLUMN, 1) as $row) {
debug_zval_dump($row); // string(3) "foo"
}

/* create a new instance of class Foo on each iteration */
foreach ($pdo->queryAndIterate("select NAME, VALUE from test",
PDO_FETCH_CLASS, 'Foo') as $row) {
debug_zval_dump($row);
/*
Object(Foo)#4 (2) refcount(2){
["NAME"]=>
string(12) "foo220051429" refcount(2)
["VALUE"]=>
string(12) "bar789825748" refcount(2)
}
*/
}

etc.

show more ...

Revision tags: PRE_NEW_VM_GEN_PATCH
# 32a04652 26-Sep-2004 Marcus Boerger

- Fix warning

Revision tags: php-5.0.2
# 7937f0a2 23-Sep-2004 Wez Furlong

Implement persistent connections
$dbh->exec --> $dbh->query

Revision tags: php-4.3.9, php-5.0.2RC1, php-4.3.9RC3, PRE_ZEND_VM_DISPATCH_PATCH, php-4.3.9RC2, php-5.0.1, php-5.0.1RC2, php-4.3.9RC1, php-5.0.1RC1, RELEASE_0_1
# 0d002664 19-Jul-2004 Wez Furlong

Implement empty-string-to-null conversion option for oracle compat.
This can be enabled using:
$dbh->setAttribute(PDO_ATTR_ORACLE_NULLS, true);

Revision tags: php-5.0.0RC4, php-5.0.0, php-4.3.8
# 905fbfd8 12-Jul-2004 Ilia Alshanetsky

Added missing constant and correct bound column retrieval. When bound
columns are specified only return status (TRUE/FALSE) indicator.

# e48d1272 15-Jun-2004 Ard Biesheuvel

Revert (at Wez's request)

# cb4612c7 13-Jun-2004 Ard Biesheuvel

Added double param type

Revision tags: php-5.0.0RC3, php-5.0.0RC3RC2, php-4.3.7, php-5.0.0RC3RC1
# 7a87af33 25-May-2004 Wez Furlong

Some definitions for cursors.
Define a mechanism for driver-specific attributes.
Use a refcount for the stmt structure.

Revision tags: php-4.3.7RC1, RELEASE_0_1_1
# 758b7f1a 21-May-2004 Wez Furlong

Bump the version number

1234567