Skip to content

Commit

Permalink
Fixed a potential cause of ORA-12519: TNS:no appropriate service hand…
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Nov 28, 2018
1 parent 34bc9ed commit 8bb43e0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@

class OracleSchemaManagerTest extends SchemaManagerFunctionalTestCase
{
protected function setUp()
public static function setUpBeforeClass()
{
parent::setUp();
parent::setUpBeforeClass();

if (! isset($GLOBALS['db_username'])) {
$this->markTestSkipped('Foo');
self::markTestSkipped('Username must be explicitly specified in connection parameters for this test');
}

$username = $GLOBALS['db_username'];

$query = 'GRANT ALL PRIVILEGES TO ' . $username;

$conn = TestUtil::getTempConnection();
$conn->executeUpdate($query);
$conn->exec($query);
}

public function testRenameTable()
Expand Down

0 comments on commit 8bb43e0

Please sign in to comment.