Skip to content

Commit d5807e2

Browse files
author
Gabriel Tadra Mainginski
committed
Add default case to query types
1 parent fa0df59 commit d5807e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Database/SybaseConnection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ private function compileBindings($query, $bindings)
171171
case "delete":
172172
preg_match("/(?'tables'.*) where (?'attributes'.*)/i" ,$query, $matches);
173173
break;
174+
default:
175+
return $bindings;
176+
break;
174177
}
175178

176179
$desQuery = array_intersect_key($matches, array_flip(array_filter(array_keys($matches), 'is_string')));

0 commit comments

Comments
 (0)