Output the DSN.
This commit is contained in:
parent
c5b265b177
commit
13e844a2f7
@ -338,7 +338,7 @@ EOD;
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
</div>
|
</div>
|
||||||
EOD;
|
EOD;
|
||||||
if (defined('DATABASE_DSN')) { print "DATABASE_DSN = " + DATABASE_DSN; }
|
print "DATABASE_DSN = '" + DATABASE_DSN + "'";
|
||||||
exit($e->getMessage());
|
exit($e->getMessage());
|
||||||
}
|
}
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
|
@ -28,10 +28,10 @@ define("_TRAVIS_DATABASE", $db);
|
|||||||
define("_TRAVIS_WEBHOST", $host);
|
define("_TRAVIS_WEBHOST", $host);
|
||||||
|
|
||||||
// Currently the tests only support MySQL and PostgreSQL.
|
// Currently the tests only support MySQL and PostgreSQL.
|
||||||
if ($db == "mysql") {
|
if ($db === "mysql") {
|
||||||
define("_TRAVIS_DATABASE_USERNAME", "root");
|
define("_TRAVIS_DATABASE_USERNAME", "root");
|
||||||
define("_TRAVIS_DATABASE_PASSWORD", "");
|
define("_TRAVIS_DATABASE_PASSWORD", "");
|
||||||
} elseif ($db == "pgsql") {
|
} elseif ($db === "pgsql") {
|
||||||
define("_TRAVIS_DATABASE_USERNAME", "postgres");
|
define("_TRAVIS_DATABASE_USERNAME", "postgres");
|
||||||
define("_TRAVIS_DATABASE_PASSWORD", "");
|
define("_TRAVIS_DATABASE_PASSWORD", "");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user