Skip to content

Commit b829876

Browse files
author
Gabriel Tadra Mainginski
committed
Fix a offset problem in joins
1 parent abe9884 commit b829876

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Database/SybaseConnection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ private function compileForSelect(Builder $builder, $bindings) {
138138
for($ind = 0; $ind < count($wheres); $ind++ ){
139139
if(isset($wheres[$ind]['value'])){
140140
if(in_array(strtolower($tipos[$wheres[$ind]['column']]), $this->without_quotes)){
141-
if(!is_null($bindings[$ind])){
142-
$new_binds[$ind] = $bindings[$ind]/1;
141+
if(!is_null($bindings[$i])){
142+
$new_binds[$i] = $bindings[$i]/1;
143143
}else{
144-
$new_binds[$ind] = null;
144+
$new_binds[$i] = null;
145145
}
146146
}else{
147-
$new_binds[$ind] = (string)$bindings[$ind];
147+
$new_binds[$i] = (string)$bindings[$i];
148148
}
149149
$i++;
150150
}

0 commit comments

Comments
 (0)