Lets try posgres
This commit is contained in:
parent
18489b4302
commit
a75efa93f1
@ -29,7 +29,7 @@ class MySQLQBTest extends QBTest {
|
||||
|
||||
// echo '<hr /> MySQL Queries <hr />';
|
||||
}
|
||||
elseif ( ! empty($_ENV['TRAVIS_PHP_VERSION']))
|
||||
elseif ( ! empty($_ENV['CI']))
|
||||
{
|
||||
$params = array(
|
||||
'host' => '127.0.0.1',
|
||||
|
@ -29,7 +29,7 @@ class MySQLTest extends DBTest {
|
||||
|
||||
$this->db = new MySQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
|
||||
}
|
||||
elseif ( ! empty($_ENV['TRAVIS_PHP_VERSION']))
|
||||
elseif ( ! empty($_ENV['CI']))
|
||||
{
|
||||
$this->db = new MySQL('host=127.0.0.1;port=3306;dbname=test', 'root');
|
||||
}
|
||||
|
@ -30,6 +30,19 @@ class PgSQLQBTest extends QBTest {
|
||||
// echo '<hr /> Postgres Queries <hr />';
|
||||
|
||||
}
|
||||
elseif ( ! empty($_ENV['CI']))
|
||||
{
|
||||
$params = array(
|
||||
'host' => '127.0.0.1',
|
||||
'port' => '5432',
|
||||
'database' => 'test',
|
||||
'user' => 'postgres',
|
||||
'pass' => NULL,
|
||||
'type' => 'pgsql'
|
||||
);
|
||||
|
||||
$this->db = new Query_Builder($params);
|
||||
}
|
||||
}
|
||||
|
||||
function TestExists()
|
||||
|
@ -34,6 +34,10 @@ class PgTest extends DBTest {
|
||||
|
||||
$this->db = new PgSQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
|
||||
}
|
||||
elseif ( ! empty($_ENV['CI']))
|
||||
{
|
||||
$this->db = new PgSQL('host=127.0.0.1;port=5432;dbname=test', 'postgres');
|
||||
}
|
||||
}
|
||||
|
||||
function TestExists()
|
||||
|
Loading…
Reference in New Issue
Block a user