|
@@ 42-45 (lines=4) @@
|
| 39 |
|
{ |
| 40 |
|
$platform = $this->adapter->getPlatform()->getName(); |
| 41 |
|
|
| 42 |
|
if(isset($this->config['schema']) && $platform == 'MySQL'){ |
| 43 |
|
$sql = 'USE ' . $this->config['schema'] . ';'; |
| 44 |
|
$this->adapter->getDriver()->getConnection()->execute($sql); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
if(isset($this->config['schema']) && $platform == 'PostgreSQL'){ |
| 48 |
|
$sql = 'SET SCHEMA \'' . $this->config['schema'] . '\';'; |
|
@@ 47-50 (lines=4) @@
|
| 44 |
|
$this->adapter->getDriver()->getConnection()->execute($sql); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
if(isset($this->config['schema']) && $platform == 'PostgreSQL'){ |
| 48 |
|
$sql = 'SET SCHEMA \'' . $this->config['schema'] . '\';'; |
| 49 |
|
$this->adapter->getDriver()->getConnection()->execute($sql); |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
} |
| 53 |
|
|