DBAL-379: [GH-225] Fix SQLServerPlatform adds unique constraint to ADD PRIMARY KEY statement #1568

Closed
doctrinebot opened this Issue Nov 9, 2012 · 1 comment

2 participants

@doctrinebot

Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of CraigMason:

Url: #225

Message:

Currently when executing an ALTER TABLE statement with SQL Server, the query will be:

This will happen when adding primary keys via ALTER TABLE.

ALTER TABLE foo ADD PRIMARY KEY (id) WHERE id IS NOT NULL

should be

ALTER TABLE foo ADD PRIMARY KEY (id)

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label Dec 6, 2015
@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.3.1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment