From 35eb4cdf6d971dcceae664b78afb221bc14b2493 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 10 Sep 2005 16:45:53 +0000 Subject: [PATCH] these aren't present for the sqlite2 driver. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@195722 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/PDO-sqliteCreateAggregate.xml | 11 ++++++++++- .../functions/PDO-sqliteCreateFunction.xml | 12 ++++++++++-- reference/pdo_sqlite/reference.xml | 10 +++++++--- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/reference/pdo_sqlite/functions/PDO-sqliteCreateAggregate.xml b/reference/pdo_sqlite/functions/PDO-sqliteCreateAggregate.xml index e066d2607d..4ed7a3e654 100644 --- a/reference/pdo_sqlite/functions/PDO-sqliteCreateAggregate.xml +++ b/reference/pdo_sqlite/functions/PDO-sqliteCreateAggregate.xml @@ -1,5 +1,5 @@ - + PDO::sqliteCreateAggregate @@ -163,6 +163,13 @@ var_dump($db->query('SELECT max_len(a) from strings')->fetchAll()); SQL functions. + + + This method is not available with the SQLite2 driver. + Use the old style sqlite API for that instead. + + + @@ -171,6 +178,8 @@ var_dump($db->query('SELECT max_len(a) from strings')->fetchAll()); PDO::sqliteCreateFunction + sqlite_create_function + sqlite_create_aggregate diff --git a/reference/pdo_sqlite/functions/PDO-sqliteCreateFunction.xml b/reference/pdo_sqlite/functions/PDO-sqliteCreateFunction.xml index 94a02f0462..98e1a41083 100644 --- a/reference/pdo_sqlite/functions/PDO-sqliteCreateFunction.xml +++ b/reference/pdo_sqlite/functions/PDO-sqliteCreateFunction.xml @@ -1,5 +1,5 @@ - + PDO::sqliteCreateFunction @@ -132,13 +132,21 @@ $rows = $db->query("SELECT php('md5', filename) from files")->fetchAll(); SQL functions. + + + This method is not available with the SQLite2 driver. + Use the old style sqlite API for that instead. + + &reftitle.seealso; - PDO::sqliteCreateAggregate + PDO::sqliteCreateAggregate + sqlite_create_function + sqlite_create_aggregate diff --git a/reference/pdo_sqlite/reference.xml b/reference/pdo_sqlite/reference.xml index 67e9d6259b..59704226ba 100644 --- a/reference/pdo_sqlite/reference.xml +++ b/reference/pdo_sqlite/reference.xml @@ -1,5 +1,5 @@ - + @@ -18,8 +18,12 @@ In PHP 5.1, the SQLite extension also provides a driver for SQLite 2 databases; while it is not technically a - part of the PDO_SQLITE driver, it behaves very similarly, so it is - documented alongside it. + part of the PDO_SQLITE driver, it behaves similarly, so it is + documented alongside it. The SQLite 2 driver for PDO is provided + primarily to make it easier to import legacy sqlite 2 database files into + an application that uses the faster, more efficient sqlite 3 driver. As + a result, the SQLite 2 driver is not as feature-rich as the SQLite 3 + driver.