Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
#1711: dropConstraint()'s $primary hint in MySQL
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Doctrine  
View profile   Translate to Translated (View Original)
 More options 2 Dec 2008, 18:51
From: "Doctrine" <no-re...@phpdoctrine.org>
Date: Tue, 02 Dec 2008 18:51:46 -0000
Local: Tues 2 Dec 2008 18:51
Subject: [Doctrine] #1711: dropConstraint()'s $primary hint in MySQL
#1711: dropConstraint()'s $primary hint in MySQL
-----------------------------------+--------------------------------------- -
 Reporter:  temp                   |       Owner:  jwage
     Type:  defect                 |      Status:  new  
 Priority:  minor                  |   Milestone:  1.0.5
Component:  Attributes             |     Version:  1.0.3
 Keywords:                         |    Has_test:  0    
 Mystatus:  Pending Core Response  |   Has_patch:  0    
-----------------------------------+--------------------------------------- -
 Shouldn't MySQL override Export's dropConstraint() method to take use of
 the $primary flag?

 Since it is always
 ALTER TABLE whatever DROP PRIMARY KEY

 Right now I have to specify "PRIMARY KEY" to the method, but won't this
 break compatibility with other databases? Or is this valid for all
 databases?

--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1711>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doctrine  
View profile   Translate to Translated (View Original)
 More options 2 Dec 2008, 18:53
From: "Doctrine" <no-re...@phpdoctrine.org>
Date: Tue, 02 Dec 2008 18:53:47 -0000
Local: Tues 2 Dec 2008 18:53
Subject: Re: [Doctrine] #1711: dropConstraint()'s $primary hint in MySQL
#1711: dropConstraint()'s $primary hint in MySQL
-----------------------------------+--------------------------------------- -
 Reporter:  temp                   |       Owner:  jwage
     Type:  defect                 |      Status:  new  
 Priority:  minor                  |   Milestone:  1.0.5
Component:  Attributes             |     Version:  1.0.3
 Keywords:                         |    Has_test:  0    
 Mystatus:  Pending Core Response  |   Has_patch:  0    
-----------------------------------+--------------------------------------- -

Comment(by temp):

 Uhm... even worse, "PRIMARY KEY" as the $constraintName doesn't work:

 Error updating schema: SQLSTATE[42000]: Syntax error or access violation:
 1064 You have an error in your SQL syntax; check the manual that
 corresponds to your MySQL server version for the right syntax to use near
 'CONSTRAINT `PRIMARY KEY`'

 Any hints on this?

--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1711#comment:1>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google