Skip to content

Commit

Permalink
Update MySQLQuery.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Jun 24, 2020
1 parent 2c7dc3f commit 4f42e3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MySQLQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -1078,12 +1078,12 @@ public function select($selectOptions = [
$cols[] = $colOrVal;
$vals[] = $valOrColIndex;
} else if (gettype($valOrColIndex) == 'integer') {
$testCol = $tableObj->getColByIndex($valOrColIndex);
$cols[] = $tableObj->getColByIndex($valOrColIndex);
$vals[] = $colOrVal;
} else {
$testCol = $tableObj->getCol($valOrColIndex);
$cols[] = $tableObj->getCol($valOrColIndex);
$vals[] = $colOrVal;
}
$cols[] = $testCol;
$vals[] = $colOrVal;
}
$where = $tableObj instanceof JoinTable ?
$this->createWhereConditions($cols, $vals, $selectOptions['conditions'], $selectOptions['join-operators'],$tableObj->getName()) :
Expand Down

0 comments on commit 4f42e3c

Please sign in to comment.