cvs: pear /MDB2 MDB2.php package.php /MDB2/MDB2/Driver mysql.php mysqli.php sqlite.php
| From: | Lorenzo Alberton | Date: | Sat, 05 Apr 2008 15:39:22 +0000 |
| Subject: | cvs: pear /MDB2 MDB2.php package.php /MDB2/MDB2/Driver mysql.php mysqli.php sqlite.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-51804@lists.php.net to get a copy of this message | ||
quipo Sat Apr 5 15:39:22 2008 UTC
Modified files:
/pear/MDB2 MDB2.php package.php
/pear/MDB2/MDB2/Driver mysql.php mysqli.php sqlite.php
Log:
fixed bug #12912: replace() documentation
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2.php?r1=1.320&r2=1.321&diff_format=u
Index: pear/MDB2/MDB2.php
diff -u pear/MDB2/MDB2.php:1.320 pear/MDB2/MDB2.php:1.321
--- pear/MDB2/MDB2.php:1.320 Sat Mar 22 20:02:47 2008
+++ pear/MDB2/MDB2.php Sat Apr 5 15:39:22 2008
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB2.php,v 1.320 2008/03/22 20:02:47 davidc Exp $
+// $Id: MDB2.php,v 1.321 2008/04/05 15:39:22 quipo Exp $
//
/**
@@ -2738,8 +2738,7 @@
/**
* Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT
* query, except that if there is already a row in the table with the same
- * key field values, the REPLACE query just updates its values instead of
- * inserting a new row.
+ * key field values, the old row is deleted before the new row is inserted.
*
* The REPLACE type of query does not make part of the SQL standards. Since
* practically only MySQL and SQLite implement it natively, this type of
http://cvs.php.net/viewvc.cgi/pear/MDB2/package.php?r1=1.288&r2=1.289&diff_format=u
Index: pear/MDB2/package.php
diff -u pear/MDB2/package.php:1.288 pear/MDB2/package.php:1.289
--- pear/MDB2/package.php:1.288 Sat Mar 15 09:49:28 2008
+++ pear/MDB2/package.php Sat Apr 5 15:39:22 2008
@@ -7,6 +7,7 @@
$version_api = $version_release;
$state = 'beta';
$notes = <<<EOT
+- fixed bug #12912: replace() documentation
open todo items:
- handle autoincrement fields in alterTable()
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/mysql.php?r1=1.208&r2=1.209&diff_format=u
Index: pear/MDB2/MDB2/Driver/mysql.php
diff -u pear/MDB2/MDB2/Driver/mysql.php:1.208 pear/MDB2/MDB2/Driver/mysql.php:1.209
--- pear/MDB2/MDB2/Driver/mysql.php:1.208 Thu Mar 13 03:31:55 2008
+++ pear/MDB2/MDB2/Driver/mysql.php Sat Apr 5 15:39:22 2008
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: mysql.php,v 1.208 2008/03/13 03:31:55 afz Exp $
+// $Id: mysql.php,v 1.209 2008/04/05 15:39:22 quipo Exp $
//
/**
@@ -1124,8 +1124,7 @@
/**
* Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT
* query, except that if there is already a row in the table with the same
- * key field values, the REPLACE query just updates its values instead of
- * inserting a new row.
+ * key field values, the old row is deleted before the new row is inserted.
*
* The REPLACE type of query does not make part of the SQL standards. Since
* practically only MySQL implements it natively, this type of query is
@@ -1183,6 +1182,7 @@
*
* Default: 0
*
+ * @see http://dev.mysql.com/doc/refman/5.0/en/replace.html
* @return mixed MDB2_OK on success, a MDB2 error on failure
*/
function replace($table, $fields)
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/mysqli.php?r1=1.188&r2=1.189&diff_format=u
Index: pear/MDB2/MDB2/Driver/mysqli.php
diff -u pear/MDB2/MDB2/Driver/mysqli.php:1.188 pear/MDB2/MDB2/Driver/mysqli.php:1.189
--- pear/MDB2/MDB2/Driver/mysqli.php:1.188 Thu Mar 13 03:31:55 2008
+++ pear/MDB2/MDB2/Driver/mysqli.php Sat Apr 5 15:39:22 2008
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: mysqli.php,v 1.188 2008/03/13 03:31:55 afz Exp $
+// $Id: mysqli.php,v 1.189 2008/04/05 15:39:22 quipo Exp $
//
/**
@@ -946,7 +946,7 @@
$this->supported['prepared_statements'] = true;
}
- // SAVEPOINTS were introduced in MySQL 4.0.14 and 4.1.1 (InnoDB)
+ // SAVEPOINTs were introduced in MySQL 4.0.14 and 4.1.1 (InnoDB)
if (version_compare($server_version, '4.1.0', '>=')) {
if (version_compare($server_version, '4.1.1', '<')) {
$this->supported['savepoints'] = false;
@@ -1140,8 +1140,7 @@
/**
* Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT
* query, except that if there is already a row in the table with the same
- * key field values, the REPLACE query just updates its values instead of
- * inserting a new row.
+ * key field values, the old row is deleted before the new row is inserted.
*
* The REPLACE type of query does not make part of the SQL standards. Since
* practically only MySQL implements it natively, this type of query is
@@ -1199,6 +1198,7 @@
*
* Default: 0
*
+ * @see http://dev.mysql.com/doc/refman/5.0/en/replace.html
* @return mixed MDB2_OK on success, a MDB2 error on failure
*/
function replace($table, $fields)
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/sqlite.php?r1=1.158&r2=1.159&diff_format=u
Index: pear/MDB2/MDB2/Driver/sqlite.php
diff -u pear/MDB2/MDB2/Driver/sqlite.php:1.158 pear/MDB2/MDB2/Driver/sqlite.php:1.159
--- pear/MDB2/MDB2/Driver/sqlite.php:1.158 Sat Mar 8 14:18:39 2008
+++ pear/MDB2/MDB2/Driver/sqlite.php Sat Apr 5 15:39:22 2008
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: sqlite.php,v 1.158 2008/03/08 14:18:39 quipo Exp $
+// $Id: sqlite.php,v 1.159 2008/04/05 15:39:22 quipo Exp $
//
/**
@@ -671,8 +671,7 @@
/**
* Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT
* query, except that if there is already a row in the table with the same
- * key field values, the REPLACE query just updates its values instead of
- * inserting a new row.
+ * key field values, the old row is deleted before the new row is inserted.
*
* The REPLACE type of query does not make part of the SQL standards. Since
* practically only SQLite implements it natively, this type of query is