History log of /PHP-8.3/ext/pdo/pdo_dbh.c (Results 351 – 375 of 410)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# d235a2bf 22-Feb-2005 Marcus Boerger

- Put this back in (forgot to revert)

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

# 18985acc 22-Feb-2005 Marcus Boerger

- Call dtor

Revision tags: RELEASE_0_2_4, RELEASE_0_2_3
# 1051e707 13-Feb-2005 Wez Furlong

Fixes the crash part of PECL Bug #3434.

Revision tags: RELEASE_0_2_2
# 91eab3e5 11-Feb-2005 Wez Furlong

typo

# ccd24266 11-Feb-2005 Wez Furlong

Fix PDO::query() for drivers that emulate bound parameters.

Revision tags: RELEASE_0_2_1
# 94d5261f 09-Feb-2005 Wez Furlong

cosmetic changes

# 902ca8c1 09-Feb-2005 Wez Furlong

Expose the quoter method of the driver as PDO::quote().
Closes PECL Bug #3393

Revision tags: RELEASE_0_2
# e3ba31e8 06-Feb-2005 Wez Furlong

better handling of pdo-level errors

# ca4dc036 06-Feb-2005 Wez Furlong

this one too

# 9ba84360 06-Feb-2005 Wez Furlong

handle some generic attributes here

# 7a137a5f 21-Jan-2005 Wez Furlong

fix leak

# dcd3d84d 21-Jan-2005 Wez Furlong

Eliminate unused parameter

# a536e31f 19-Jan-2005 Wez Furlong

leak/segv less

# 37ea5fbe 17-Jan-2005 Wez Furlong

Tidy up driver specific method handling

# dd842e4b 12-Jan-2005 Wez Furlong

API support for scrollable cursors

# 1875caf1 08-Jan-2005 Marcus Boerger

- Fix warning
- Fix tsrm usage

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

# b44785e9 26-Dec-2004 Wez Furlong

don't blow up under HEAD

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
# eb0cd48d 26-Sep-2004 Wez Furlong

Add rough cut at fetching meta data.

# 2416481f 24-Sep-2004 Wez Furlong

More sensible error codes in the exceptions we throw for broken transactions

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
# ceb55102 19-Sep-2004 Wez Furlong

Add support for:

$d = new PDO('foobar'); // name has no : character

This will indirect via the entry "pdo.dsn.foobar" from the php.ini file,
so if you have:

pdo.dsn.fo

Add support for:

$d = new PDO('foobar'); // name has no : character

This will indirect via the entry "pdo.dsn.foobar" from the php.ini file,
so if you have:

pdo.dsn.foobar=sqlite::memory:

the above is equivalent to this:

$d = new PDO('sqlite::memory:');

which creates an in-memory sqlite db.

show more ...

1...<<11121314151617