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
090329a7
Commit
090329a7
authored
Feb 05, 2017
by
Steve Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2595: fix test error "ORA-00984: column not allowed here" on Oracle 11g
parent
ca228e9d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
OCI8ConnectionTest.php
.../Tests/DBAL/Functional/Driver/OCI8/OCI8ConnectionTest.php
+12
-3
No files found.
tests/Doctrine/Tests/DBAL/Functional/Driver/OCI8/OCI8ConnectionTest.php
View file @
090329a7
...
...
@@ -3,6 +3,7 @@
namespace
Doctrine\Tests\DBAL\Functional\Driver\OCI8
;
use
Doctrine\DBAL\Driver\OCI8\Driver
;
use
Doctrine\DBAL\Schema\Table
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
class
OCI8ConnectionTest
extends
DbalFunctionalTestCase
...
...
@@ -32,12 +33,20 @@ class OCI8ConnectionTest extends DbalFunctionalTestCase
*/
public
function
testLastInsertIdAcceptsFqn
()
{
$this
->
_conn
->
executeUpdate
(
'CREATE SEQUENCE dbal2595_seq'
);
$this
->
_conn
->
executeUpdate
(
'CREATE TABLE DBAL2595(id NUMBER DEFAULT dbal2595_seq.NEXTVAL, foo NUMBER)'
);
$platform
=
$this
->
_conn
->
getDatabasePlatform
();
$schemaManager
=
$this
->
_conn
->
getSchemaManager
();
$table
=
new
Table
(
'DBAL2595'
);
$table
->
addColumn
(
'id'
,
'integer'
,
array
(
'autoincrement'
=>
true
));
$table
->
addColumn
(
'foo'
,
'integer'
);
$schemaManager
->
dropAndCreateTable
(
$table
);
$this
->
_conn
->
executeUpdate
(
'INSERT INTO DBAL2595 (foo) VALUES (1)'
);
$schema
=
$this
->
_conn
->
getDatabase
();
$sequence
=
$platform
->
getIdentitySequenceName
(
$schema
.
'.DBAL2595'
,
'id'
);
$this
->
assertSame
(
1
,
$this
->
driverConnection
->
lastInsertId
(
$s
chema
.
'.dbal2595_seq'
));
$this
->
assertSame
(
1
,
$this
->
driverConnection
->
lastInsertId
(
$s
equence
));
}
}
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