Skip to content

Commit e1677b6

Browse files
author
Gabriel Tadra Mainginski
committed
Fix #8
1 parent 47a89e4 commit e1677b6

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Database/SybaseConnection.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,15 @@ private function compileForSelect(Builder $builder, $bindings) {
116116
$new_format[$tables] = [];
117117
}
118118
$wheres = (array)$builder->wheres;
119+
$i = 0;
119120
for($ind = 0; $ind < count($wheres); $ind++ ){
120-
if(!isset($wheres[$ind]['value'])){
121-
$ind++;
122-
unset($wheres[$ind]);
123-
break;
124-
}
125-
126-
if(in_array(strtolower($tipos[$wheres[$ind]['column']]), $this->without_quotes)){
127-
$new_binds[$ind] = $bindings[$ind]/1;
128-
}else{
129-
$new_binds[$ind] = (string)$bindings[$ind];
121+
if(isset($wheres[$ind]['value'])){
122+
if(in_array(strtolower($tipos[$wheres[$ind]['column']]), $this->without_quotes)){
123+
$new_binds[$i] = $bindings[$i]/1;
124+
}else{
125+
$new_binds[$i] = (string)$bindings[$i];
126+
}
127+
$i++;
130128
}
131129
}
132130

0 commit comments

Comments
 (0)