Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Really fix that FROM group condition

  • Loading branch information...
commit fce9abe379cd273262d5e3dcbbb169ffd090506a 1 parent 7eaa14f
@narfbg narfbg authored
View
2  system/database/drivers/cubrid/cubrid_driver.php
@@ -438,7 +438,7 @@ protected function _update_batch($table, $values, $index, $where = NULL)
*/
protected function _from_tables()
{
- if ( ! empty($this->qb_join) && count($this->qb_from) > 0)
+ if ( ! empty($this->qb_join) && count($this->qb_from) > 1)
{
return '('.implode(', ', $this->qb_from).')';
}
View
2  system/database/drivers/mysql/mysql_driver.php
@@ -474,7 +474,7 @@ protected function _update_batch($table, $values, $index, $where = NULL)
*/
protected function _from_tables()
{
- if ( ! empty($this->qb_join) && count($this->qb_from) > 0)
+ if ( ! empty($this->qb_join) && count($this->qb_from) > 1)
{
return '('.implode(', ', $this->qb_from).')';
}
View
2  system/database/drivers/mysqli/mysqli_driver.php
@@ -484,7 +484,7 @@ protected function _update_batch($table, $values, $index, $where = NULL)
*/
protected function _from_tables()
{
- if ( ! empty($this->qb_join) && count($this->qb_from) > 0)
+ if ( ! empty($this->qb_join) && count($this->qb_from) > 1)
{
return '('.implode(', ', $this->qb_from).')';
}
View
2  system/database/drivers/pdo/subdrivers/pdo_cubrid_driver.php
@@ -191,7 +191,7 @@ protected function _truncate($table)
*/
protected function _from_tables()
{
- if ( ! empty($this->qb_join) && count($this->qb_from) > 0)
+ if ( ! empty($this->qb_join) && count($this->qb_from) > 1)
{
return '('.implode(', ', $this->qb_from).')';
}
View
2  system/database/drivers/pdo/subdrivers/pdo_mysql_driver.php
@@ -219,7 +219,7 @@ protected function _truncate($table)
*/
protected function _from_tables()
{
- if ( ! empty($this->qb_join) && count($this->qb_from) > 0)
+ if ( ! empty($this->qb_join) && count($this->qb_from) > 1)
{
return '('.implode(', ', $this->qb_from).')';
}
Please sign in to comment.
Something went wrong with that request. Please try again.