Skip to content

Commit 6d24946

Browse files
author
Gabriel Tadra Mainginski
committed
Merge branch 'case_insensitive'
2 parents b556849 + ce6dbd9 commit 6d24946

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
@@ -124,10 +124,10 @@ private function compileForSelect(Builder $builder, $bindings) {
124124
$types[$tables] = $queryRes->fetchAll(\PDO::FETCH_NAMED);
125125

126126
foreach ($types[$tables] as &$row) {
127-
$tipos[$row['name']] = $row['type'];
128-
$tipos[$tables.'.'.$row['name']] = $row['type'];
127+
$tipos[strtolower($row['name'])] = $row['type'];
128+
$tipos[strtolower($tables.'.'.$row['name'])] = $row['type'];
129129
if(!empty($alias['alias'])){
130-
$tipos[$alias['alias'].'.'.$row['name']] = $row['type'];
130+
$tipos[strtolower($alias['alias'].'.'.$row['name'])] = $row['type'];
131131
}
132132
}
133133

@@ -137,7 +137,7 @@ private function compileForSelect(Builder $builder, $bindings) {
137137
$i = 0;
138138
for($ind = 0; $ind < count($wheres); $ind++ ){
139139
if(isset($wheres[$ind]['value'])){
140-
if(in_array(strtolower($tipos[$wheres[$ind]['column']]), $this->without_quotes)){
140+
if(in_array(strtolower($tipos[strtolower($wheres[$ind]['column'])]), $this->without_quotes)){
141141
if(!is_null($bindings[$i])){
142142
$new_binds[$i] = $bindings[$i]/1;
143143
}else{

0 commit comments

Comments
 (0)