You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Database/SybaseConnection.php
+12-21Lines changed: 12 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -99,46 +99,33 @@ private function compileForSelect(Builder $builder, $bindings) {
99
99
if(count($bindings)==0){
100
100
return [];
101
101
}
102
+
102
103
$bindings = $this->prepareBindings($bindings);
104
+
103
105
104
106
$arrTables = [];
105
107
array_push($arrTables, $builder->from);
106
-
107
108
if(!empty($builder->joins)){
108
109
foreach($builder->joinsas$join){
109
-
110
110
array_push($arrTables, $join->table);
111
111
}
112
112
}
113
113
$new_format = [];
114
114
foreach($arrTablesas$tables){
115
-
preg_match("/(?:(?'table'.*)(?: as )(?'alias'.*))|(?'tables'.*)/", $tables, $alias);
116
-
if(empty($alias['alias'])){
117
-
$tables = $alias['tables'];
118
-
}else{
119
-
$tables = $alias['table'];
120
-
}
121
-
115
+
122
116
$queryRes = $this->getPdo()->query("select a.name, b.name AS type FROM syscolumns a noholdlock JOIN systypes b noholdlock ON a.usertype = b.usertype and object_name(a.id) = '".$tables."'");
0 commit comments