If 'tables' is a string that starts with a space, treat it as user-enforced FROM definition.

Development sponsored by: Dirty Hacks Inc.
This commit is contained in:
Domas Mituzas 2007-02-11 11:29:33 +00:00
parent 123f2fe6e5
commit 3de6fd8c81

View file

@ -1045,7 +1045,11 @@ class Database {
else
$from = ' FROM ' . implode( ',', array_map( array( &$this, 'tableName' ), $table ) );
} elseif ($table!='') {
$from = ' FROM ' . $this->tableName( $table );
if ($table{0}==' ') {
$from = ' FROM ' . $table;
} else {
$from = ' FROM ' . $this->tableName( $table );
}
} else {
$from = '';
}