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
90ff8205
Commit
90ff8205
authored
Nov 21, 2012
by
David Desberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test case to reflect proper nullability of columns
parent
336441a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
SQLServerPlatformTest.php
...s/Doctrine/Tests/DBAL/Platforms/SQLServerPlatformTest.php
+3
-3
No files found.
tests/Doctrine/Tests/DBAL/Platforms/SQLServerPlatformTest.php
View file @
90ff8205
...
@@ -14,13 +14,13 @@ class SQLServerPlatformTest extends AbstractPlatformTestCase
...
@@ -14,13 +14,13 @@ class SQLServerPlatformTest extends AbstractPlatformTestCase
public
function
getGenerateTableSql
()
public
function
getGenerateTableSql
()
{
{
return
'CREATE TABLE test (id INT IDENTITY NOT NULL, test NVARCHAR(255)
DEFAULT
NULL, PRIMARY KEY (id))'
;
return
'CREATE TABLE test (id INT IDENTITY NOT NULL, test NVARCHAR(255) NULL, PRIMARY KEY (id))'
;
}
}
public
function
getGenerateTableWithMultiColumnUniqueIndexSql
()
public
function
getGenerateTableWithMultiColumnUniqueIndexSql
()
{
{
return
array
(
return
array
(
'CREATE TABLE test (foo NVARCHAR(255)
DEFAULT NULL, bar NVARCHAR(255) DEFAULT
NULL)'
,
'CREATE TABLE test (foo NVARCHAR(255)
NULL, bar NVARCHAR(255)
NULL)'
,
'CREATE UNIQUE INDEX UNIQ_D87F7E0C8C73652176FF8CAA ON test (foo, bar) WHERE foo IS NOT NULL AND bar IS NOT NULL'
'CREATE UNIQUE INDEX UNIQ_D87F7E0C8C73652176FF8CAA ON test (foo, bar) WHERE foo IS NOT NULL AND bar IS NOT NULL'
);
);
}
}
...
@@ -28,7 +28,7 @@ class SQLServerPlatformTest extends AbstractPlatformTestCase
...
@@ -28,7 +28,7 @@ class SQLServerPlatformTest extends AbstractPlatformTestCase
public
function
getGenerateAlterTableSql
()
public
function
getGenerateAlterTableSql
()
{
{
return
array
(
return
array
(
'ALTER TABLE mytable ADD quota INT
DEFAULT
NULL'
,
'ALTER TABLE mytable ADD quota INT NULL'
,
'ALTER TABLE mytable DROP COLUMN foo'
,
'ALTER TABLE mytable DROP COLUMN foo'
,
'ALTER TABLE mytable ALTER COLUMN baz NVARCHAR(255) DEFAULT \'def\' NOT NULL'
,
'ALTER TABLE mytable ALTER COLUMN baz NVARCHAR(255) DEFAULT \'def\' NOT NULL'
,
'ALTER TABLE mytable ALTER COLUMN bloo BIT DEFAULT \'0\' NOT NULL'
,
'ALTER TABLE mytable ALTER COLUMN bloo BIT DEFAULT \'0\' NOT NULL'
,
...
...
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