Skip to content

Commit

Permalink
Update TableGateway.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasdearaujo committed Nov 16, 2017
1 parent 7f877fb commit ed98275
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Silk/Database/TableGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@ protected function updateContext()
$sql = 'USE ' . $this->config['schema'] . ';';
$this->adapter->getDriver()->getConnection()->execute($sql);
}

if(isset($this->config['schema']) && $platform == 'PostgreSQL'){
$sql = 'SET SCHEMA \'' . $this->config['schema'] . '\';';
$this->adapter->getDriver()->getConnection()->execute($sql);
}
}
}

0 comments on commit ed98275

Please sign in to comment.