Skip to content

Commit 8a6295c

Browse files
author
Gabriel Tadra Mainginski
committed
Fix #28
1 parent 136ca40 commit 8a6295c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Database/SybaseConnection.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,18 @@ private function compileForSelect(Builder $builder, $bindings) {
133133

134134
$new_format[$tables] = [];
135135
}
136-
$wheres = (array)$builder->wheres;
136+
$wheres = [];
137+
foreach($builder->wheres as $w){
138+
switch($w['type']){
139+
case "Basic":
140+
array_push($wheres, $w);
141+
break;
142+
case "Nested":
143+
$wheres += $w['query']->wheres;
144+
break;
145+
}
146+
}
147+
var_dump($wheres);
137148
$i = 0;
138149
for($ind = 0; $ind < count($wheres); $ind++ ){
139150
if(isset($wheres[$ind]['value'])){

0 commit comments

Comments
 (0)