cvs: pear /MDB mysql.php

From: Date: Sat, 24 Aug 2002 22:20:56 +0000
Subject: cvs: pear /MDB mysql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5940@lists.php.net to get a copy of this message
lsmith Sat Aug 24 18:20:56 2002 EDT Modified files: /pear/MDB mysql.php Log: made constructor parameters optional Index: pear/MDB/mysql.php diff -u pear/MDB/mysql.php:1.44 pear/MDB/mysql.php:1.45 --- pear/MDB/mysql.php:1.44 Thu Aug 22 10:06:07 2002 +++ pear/MDB/mysql.php Sat Aug 24 18:20:56 2002 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@dybnet.de> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.44 2002/08/22 14:06:07 lsmith Exp $ +// $Id: mysql.php,v 1.45 2002/08/24 22:20:56 lsmith Exp $ // if (!defined('MDB_MYSQL_INCLUDED')) { @@ -81,7 +81,7 @@ /** * Constructor */ - function MDB_driver_mysql($dsninfo, $options) + function MDB_driver_mysql($dsninfo = NULL, $options = NULL) { if(MDB::isError($common_contructor = $this->MDB_common($dsninfo, $options))) { return $common_contructor; @@ -130,9 +130,9 @@ .' is not a supported default table type'; } } - + $this->decimal_factor = pow(10.0, $this->options['decimal_places']); - + $this->errorcode_map = array( 1004 => DB_ERROR_CANNOT_CREATE, 1005 => DB_ERROR_CANNOT_CREATE,

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