cvs: pear /MDB2/MDB2/Driver fbsql.php mssql.php mysql.php sqlite.php

From: Date: Fri, 10 Sep 2004 11:25:48 +0000
Subject: cvs: pear /MDB2/MDB2/Driver fbsql.php mssql.php mysql.php sqlite.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-23784@lists.php.net to get a copy of this message
lsmith Fri Sep 10 07:25:48 2004 EDT Modified files: /pear/MDB2/MDB2/Driver sqlite.php mysql.php mssql.php fbsql.php Log: - phpdoc fixes in getAfterID() http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/sqlite.php?r1=1.27&r2=1.28&ty=u Index: pear/MDB2/MDB2/Driver/sqlite.php diff -u pear/MDB2/MDB2/Driver/sqlite.php:1.27 pear/MDB2/MDB2/Driver/sqlite.php:1.28 --- pear/MDB2/MDB2/Driver/sqlite.php:1.27 Fri Sep 10 03:17:25 2004 +++ pear/MDB2/MDB2/Driver/sqlite.php Fri Sep 10 07:25:48 2004 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: sqlite.php,v 1.27 2004/09/10 07:17:25 lsmith Exp $ +// $Id: sqlite.php,v 1.28 2004/09/10 11:25:48 lsmith Exp $ // /** @@ -641,14 +641,14 @@ // {{{ getAfterID() /** - * returns the autoincrement ID if supported + * returns the autoincrement ID if supported or $id * - * @param string $seq_name name of the sequence (needs to match the name of - * the table into which a new row was inserted + * @param mixed $id value as returned by getBeforeId() + * @param string $table name of the table into which a new row was inserted * @return mixed MDB2 Error Object or id * @access public */ - function getAfterID($id, $seq_name) + function getAfterID($id, $table) { $this->loadModule('native'); return $this->native->getInsertID(); http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/mysql.php?r1=1.26&r2=1.27&ty=u Index: pear/MDB2/MDB2/Driver/mysql.php diff -u pear/MDB2/MDB2/Driver/mysql.php:1.26 pear/MDB2/MDB2/Driver/mysql.php:1.27 --- pear/MDB2/MDB2/Driver/mysql.php:1.26 Fri Sep 10 03:17:25 2004 +++ pear/MDB2/MDB2/Driver/mysql.php Fri Sep 10 07:25:48 2004 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.26 2004/09/10 07:17:25 lsmith Exp $ +// $Id: mysql.php,v 1.27 2004/09/10 11:25:48 lsmith Exp $ // /** @@ -700,14 +700,14 @@ // {{{ getAfterID() /** - * returns the autoincrement ID if supported + * returns the autoincrement ID if supported or $id * - * @param string $seq_name name of the sequence (needs to match the name of - * the table into which a new row was inserted + * @param mixed $id value as returned by getBeforeId() + * @param string $table name of the table into which a new row was inserted * @return mixed MDB2 Error Object or id * @access public */ - function getAfterID($id, $seq_name) + function getAfterID($id, $table) { $this->loadModule('native'); return $this->native->getInsertID(); http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/mssql.php?r1=1.25&r2=1.26&ty=u Index: pear/MDB2/MDB2/Driver/mssql.php diff -u pear/MDB2/MDB2/Driver/mssql.php:1.25 pear/MDB2/MDB2/Driver/mssql.php:1.26 --- pear/MDB2/MDB2/Driver/mssql.php:1.25 Fri Sep 10 03:17:24 2004 +++ pear/MDB2/MDB2/Driver/mssql.php Fri Sep 10 07:25:48 2004 @@ -43,7 +43,7 @@ // | Author: Frank M. Kromann <frank@kromann.info> | // +----------------------------------------------------------------------+ // -// $Id: mssql.php,v 1.25 2004/09/10 07:17:24 lsmith Exp $ +// $Id: mssql.php,v 1.26 2004/09/10 11:25:48 lsmith Exp $ // /** @@ -502,17 +502,17 @@ // {{{ getAfterID() /** - * returns the autoincrement ID if supported + * returns the autoincrement ID if supported or $id * - * @param string $seq_name name of the sequence (needs to match the name of - * the table into which a new row was inserted + * @param mixed $id value as returned by getBeforeId() + * @param string $table name of the table into which a new row was inserted * @return mixed MDB2 Error Object or id * @access public */ - function getAfterID($id, $seq_name) + function getAfterID($id, $table) { $this->loadModule('native'); - return $this->native->getInsertID($seq_name); + return $this->native->getInsertID($table); } } http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/fbsql.php?r1=1.24&r2=1.25&ty=u Index: pear/MDB2/MDB2/Driver/fbsql.php diff -u pear/MDB2/MDB2/Driver/fbsql.php:1.24 pear/MDB2/MDB2/Driver/fbsql.php:1.25 --- pear/MDB2/MDB2/Driver/fbsql.php:1.24 Fri Sep 10 03:17:23 2004 +++ pear/MDB2/MDB2/Driver/fbsql.php Fri Sep 10 07:25:48 2004 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: fbsql.php,v 1.24 2004/09/10 07:17:23 lsmith Exp $ +// $Id: fbsql.php,v 1.25 2004/09/10 11:25:48 lsmith Exp $ // /** @@ -483,12 +483,14 @@ // {{{ getAfterID() /** - * @param string $seq_name name of the sequence (needs to match the name of - * the table into which a new row was inserted + * returns the autoincrement ID if supported or $id + * + * @param mixed $id value as returned by getBeforeId() + * @param string $table name of the table into which a new row was inserted * @return mixed MDB2 Error Object or id * @access public */ - function getAfterID($id, $seq_name) + function getAfterID($id, $table) { $this->loadModule('native'); return $this->native->getInsertID();

« previous php.pear.cvs (#23784) next »