Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DBAL-1024] Add more foreign key constraint violation error codes #704

Merged
merged 2 commits into from Nov 5, 2014

Conversation

deeky666
Copy link
Member

Driver exception conversion was missing some error codes for foreign key constraint violations. Currently only foreign key constraint violations for DELETE statements are tested. Foreign key constraint violations can also occur for INSERT, UPDATE and TRUNCATE write operations where some platforms provide dedicated error codes for.

@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DBAL-1024

We use Jira to track the state of pull requests and the versions they got
included in.

@Ocramius Ocramius self-assigned this Nov 5, 2014

class ExceptionTest extends \Doctrine\Tests\DbalFunctionalTestCase
{
public function setUp()
private static $running = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why a static var is needed here: please look into it

Ocramius added a commit that referenced this pull request Nov 5, 2014
[DBAL-1024] Add more foreign key constraint violation error codes
@Ocramius Ocramius merged commit 5df3a64 into doctrine:master Nov 5, 2014
@Ocramius
Copy link
Member

Ocramius commented Nov 5, 2014

@deeky666 this breaks the build: considering reverting it :-\

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants