Skip to content

Loading…

DBAL-129: Doctrine\ORM\Mapping\ClassMetadataInfo does not properly handle identifier quoting #1244

Closed
doctrinebot opened this Issue · 5 comments

1 participant

@doctrinebot

Jira issue originally created by user pschwisow:

Several methods in Doctrine\ORM\Mapping\ClassMetadataInfo assume that table names and field names may be quoted. In all places, logic assumes that the quote character will always be ` (backtick). There seems to be no way to properly quote table names with when working with SQL Server databases.

@doctrinebot

Comment created by @beberlei:

Just use foo as quotes, its just an abstract concept, doctrine will translate that to [foo] in MsSQL.

@doctrinebot

Comment created by pschwisow:

I don't see how that would work. It appears that DBAL\Platforms\AbstractPlatform::quoteIdentifier assumes that the opening and closing quotes are the same. In the case of MS SQL, it appears to use the double quote, not square brackets.

@doctrinebot

Comment created by @beberlei:

Assigned to Juokaz

@doctrinebot

Comment created by @beberlei:

Fixed

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label
@doctrinebot doctrinebot added this to the 2.0.6 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.