Skip to content

Commit 90c4af8

Browse files
author
Gabriel Tadra Mainginski
committed
Fix problem in where from tables of joins
1 parent 8524888 commit 90c4af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Database/SybaseConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private function compileForSelect(Builder $builder, $bindings) {
142142
}
143143
$i = 0;
144144
for($ind = 0; $ind < count($wheres); $ind++ ){
145-
if(isset($wheres[$ind]['value'])){
145+
if(isset($wheres[$ind]['value']) && isset($tipos[strtolower($wheres[$ind]['column'])])){
146146
if(in_array(strtolower($tipos[strtolower($wheres[$ind]['column'])]), $this->without_quotes)){
147147
if(!is_null($bindings[$i])){
148148
$new_binds[$i] = $bindings[$i]/1;

0 commit comments

Comments
 (0)