Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
b1afc40d
Unverified
Commit
b1afc40d
authored
Nov 27, 2018
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a potential cause of ORA-12519: TNS:no appropriate service handler found
parent
2e4588be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
OracleSchemaManagerTest.php
.../Tests/DBAL/Functional/Schema/OracleSchemaManagerTest.php
+11
-6
No files found.
tests/Doctrine/Tests/DBAL/Functional/Schema/OracleSchemaManagerTest.php
View file @
b1afc40d
...
...
@@ -11,20 +11,25 @@ use function array_map;
class
OracleSchemaManagerTest
extends
SchemaManagerFunctionalTestCase
{
/** @var bool */
private
static
$privilegesGranted
=
false
;
protected
function
setUp
()
{
parent
::
setUp
();
if
(
!
isset
(
$GLOBALS
[
'db_username'
])
)
{
$this
->
markTestSkipped
(
'Foo'
)
;
if
(
self
::
$privilegesGranted
)
{
return
;
}
$username
=
$GLOBALS
[
'db_username'
];
if
(
!
isset
(
$GLOBALS
[
'db_username'
]))
{
self
::
markTestSkipped
(
'Username must be explicitly specified in connection parameters for this test'
);
}
$query
=
'GRANT ALL PRIVILEGES TO '
.
$username
;
TestUtil
::
getTempConnection
()
->
exec
(
'GRANT ALL PRIVILEGES TO '
.
$GLOBALS
[
'db_username'
]);
$conn
=
TestUtil
::
getTempConnection
();
$conn
->
executeUpdate
(
$query
);
self
::
$privilegesGranted
=
true
;
}
public
function
testRenameTable
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment