Skip to content

Commit e54895a

Browse files
andrehankeandrehanke
authored andcommitted
enhance: removido filtro de colunas de tabela
1 parent 8961bcf commit e54895a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Database/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Exception;
88
use Illuminate\Database\Connection as IlluminateConnection;
99
use Illuminate\Database\Query\Builder;
10-
use Illuminate\Support\Facades\Cache;
1110
use Illuminate\Support\Facades\Schema;
1211
use PDO;
1312
use Uepg\LaravelSybase\Database\Query\Grammar as QueryGrammar;
@@ -164,10 +163,11 @@ private function compile(Builder $builder)
164163
}
165164

166165
if ($cache) {
167-
$cacheTime = key_exists('cache_time',$builder->connection->config) ? $builder->connection->config['cache_time'] : 3600;
166+
$cacheTime = key_exists('cache_time', $builder->connection->config) ? $builder->connection->config['cache_time'] : 3600;
168167
$aux = cache()->remember("sybase_columns.$tables.columns_info", $cacheTime, function () use ($tables) {
169168
$queryString = $this->queryString($tables);
170169
$queryRes = $this->getPdo()->query($queryString);
170+
171171
return $queryRes->fetchAll(PDO::FETCH_NAMED);
172172
});
173173
} else {

0 commit comments

Comments
 (0)