cvs: pear /DB_QueryTool/QueryTool EasyJoin.php
| From: | Wolfram Kriesing | Date: | Sun, 19 Jan 2003 18:34:10 +0000 |
| Subject: | cvs: pear /DB_QueryTool/QueryTool EasyJoin.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8417@lists.php.net to get a copy of this message | ||
cain Sun Jan 19 13:34:10 2003 EDT
Modified files:
/pear/DB_QueryTool/QueryTool EasyJoin.php
Log:
- making it E_ALL save
- changes due to CS
Index: pear/DB_QueryTool/QueryTool/EasyJoin.php
diff -u pear/DB_QueryTool/QueryTool/EasyJoin.php:1.1.1.1
pear/DB_QueryTool/QueryTool/EasyJoin.php:1.2
--- pear/DB_QueryTool/QueryTool/EasyJoin.php:1.1.1.1 Fri Jan 17 07:39:02 2003
+++ pear/DB_QueryTool/QueryTool/EasyJoin.php Sun Jan 19 13:34:09 2003
@@ -15,14 +15,14 @@
// | Author: Wolfram Kriesing, Paolo Panto, vision:produktion <wk@visionp.de>
// +----------------------------------------------------------------------+
//
-// $Id: EasyJoin.php,v 1.1.1.1 2003/01/17 12:39:02 cain Exp $
+// $Id: EasyJoin.php,v 1.2 2003/01/19 18:34:09 cain Exp $
//
require_once('DB/QueryTool/Query.php');
/**
*
-* @package vp_DB
+* @package DB_QueryTool
* @version 2002/09/03
* @access public
* @author Wolfram Kriesing <wolfram@kriesing.de>
@@ -70,13 +70,11 @@
foreach( $tables as $aTable ) // go through $this->table and all the given tables
{
if( $metadata = $this->metadata($aTable) )
- foreach( $metadata as $aCol=>$x ) // go through each row to check which might be
related to $aTable
- {
+ foreach ( $metadata as $aCol=>$x ) { // go through each row to check which might
be related to $aTable
$possibleTableShortName = preg_replace( $this->_tableNamePreg, ''
,$aCol );
$possibleColumnName = preg_replace( $this->_columnNamePreg, '' ,$aCol
);
//print "$aTable.$aCol .... possibleTableShortName=$possibleTableShortName ....
possibleColumnName=$possibleColumnName<br>";
- if( $shortNameIndexed[$possibleTableShortName] )
- {
+ if ( isset($shortNameIndexed[$possibleTableShortName]) ) {
// are the tables given in the tableSpec?
if( !$shortNameIndexed[$possibleTableShortName]['name'] ||
!$nameIndexed[$aTable]['name'] )