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
7a956794
Commit
7a956794
authored
Feb 06, 2012
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DBAL-216] Fix test for SQLSrv
parent
a90aacd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
WriteTest.php
tests/Doctrine/Tests/DBAL/Functional/WriteTest.php
+3
-4
No files found.
tests/Doctrine/Tests/DBAL/Functional/WriteTest.php
View file @
7a956794
...
@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Functional;
...
@@ -4,8 +4,6 @@ namespace Doctrine\Tests\DBAL\Functional;
use
Doctrine\DBAL\Types\Type
;
use
Doctrine\DBAL\Types\Type
;
use
PDO
;
use
PDO
;
require_once
__DIR__
.
'/../../TestInit.php'
;
class
WriteTest
extends
\Doctrine\Tests\DbalFunctionalTestCase
class
WriteTest
extends
\Doctrine\Tests\DbalFunctionalTestCase
{
{
public
function
setUp
()
public
function
setUp
()
...
@@ -15,9 +13,10 @@ class WriteTest extends \Doctrine\Tests\DbalFunctionalTestCase
...
@@ -15,9 +13,10 @@ class WriteTest extends \Doctrine\Tests\DbalFunctionalTestCase
try
{
try
{
/* @var $sm \Doctrine\DBAL\Schema\AbstractSchemaManager */
/* @var $sm \Doctrine\DBAL\Schema\AbstractSchemaManager */
$table
=
new
\Doctrine\DBAL\Schema\Table
(
"write_table"
);
$table
=
new
\Doctrine\DBAL\Schema\Table
(
"write_table"
);
$table
->
addColumn
(
'test_int'
,
'integer'
,
array
(
'autoincrement'
=>
true
));
$table
->
addColumn
(
'id'
,
'integer'
,
array
(
'autoincrement'
=>
true
));
$table
->
addColumn
(
'test_int'
,
'integer'
);
$table
->
addColumn
(
'test_string'
,
'string'
,
array
(
'notnull'
=>
false
));
$table
->
addColumn
(
'test_string'
,
'string'
,
array
(
'notnull'
=>
false
));
$table
->
setPrimaryKey
(
array
(
'
test_int
'
));
$table
->
setPrimaryKey
(
array
(
'
id
'
));
foreach
(
$this
->
_conn
->
getDatabasePlatform
()
->
getCreateTableSQL
(
$table
)
AS
$sql
)
{
foreach
(
$this
->
_conn
->
getDatabasePlatform
()
->
getCreateTableSQL
(
$table
)
AS
$sql
)
{
$this
->
_conn
->
executeQuery
(
$sql
);
$this
->
_conn
->
executeQuery
(
$sql
);
...
...
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