Skip to content

Commit 6a08f78

Browse files
committed
Fix #14
1 parent 87ba248 commit 6a08f78

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
@@ -126,13 +126,13 @@ private function compileForSelect(Builder $builder, $bindings) {
126126
for($ind = 0; $ind < count($wheres); $ind++ ){
127127
if(isset($wheres[$ind]['value'])){
128128
if(in_array(strtolower($tipos[$wheres[$ind]['column']]), $this->without_quotes)){
129-
if(!is_null($bindings[$i])){
130-
$new_binds[$i] = $bindings[$i]/1;
129+
if(!is_null($bindings[$ind])){
130+
$new_binds[$ind] = $bindings[$ind]/1;
131131
}else{
132-
$new_binds[$i] = null;
132+
$new_binds[$ind] = null;
133133
}
134134
}else{
135-
$new_binds[$i] = (string)$bindings[$i];
135+
$new_binds[$ind] = (string)$bindings[$ind];
136136
}
137137
$i++;
138138
}

0 commit comments

Comments
 (0)