cvs: pear /DB_DataObject/DataObject Generator.php

From: Date: Sat, 21 Jan 2006 00:38:51 +0000
Subject: cvs: pear /DB_DataObject/DataObject Generator.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-37668@lists.php.net to get a copy of this message
alan_k Sat Jan 21 00:38:51 2006 UTC Modified files: /pear/DB_DataObject/DataObject Generator.php Log: fix bug #6543 - Generator broke due to MDB changes. http://cvs.php.net/viewcvs.cgi/pear/DB_DataObject/DataObject/Generator.php?r1=1.107&r2=1.108&diff_format=u Index: pear/DB_DataObject/DataObject/Generator.php diff -u pear/DB_DataObject/DataObject/Generator.php:1.107 pear/DB_DataObject/DataObject/Generator.php:1.108 --- pear/DB_DataObject/DataObject/Generator.php:1.107 Tue Jan 10 22:46:24 2006 +++ pear/DB_DataObject/DataObject/Generator.php Sat Jan 21 00:38:51 2006 @@ -15,7 +15,7 @@ * @author Alan Knowles <alan@akbkhome.com> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Generator.php,v 1.107 2006/01/10 22:46:24 bate Exp $ + * @version CVS: $Id: Generator.php,v 1.108 2006/01/21 00:38:51 alan_k Exp $ * @link http://pear.php.net/package/DB_DataObject */ @@ -175,7 +175,8 @@ $__DB= &$GLOBALS['_DB_DATAOBJECT']['CONNECTIONS'][$this->_database_dsn_md5]; - $is_MDB2 = ($options['db_driver'] != 'DB') ? true : false; + $db_driver = empty($options['db_driver']) ? 'DB' : $options['db_driver']; + $is_MDB2 = ($db_driver != 'DB') ? true : false; if (!$is_MDB2) { // try getting a list of schema tables first. (postgres)

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