Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: [propel] Duplicate primaryKey in column does not through error until insert-sql

propel
Discussion topic

Back to topic list

Re: [propel] Duplicate primaryKey in column does not through error until insert-sql

Reply

Author hlellelid
Full name Hans Lellelid
Date 2004-04-12 13:25:27 PDT
Message Hi Matt,

>
> I've noticed a trend in the propel where problems that will occur in
> insert-sql are not shown as errors/warnings during the phing build
> phase. Is this just missing error handling or is there some other
> reason?

Well if you mean that you don't see the errors until you run the
'insert-sql' target, then yeah -- this is known. The SQL isn't actually
run against the database until you run 'insert-sql', so some things (like
the previous INDEX()) issue won't be caught until then.

However, there are some schema errors that should be caught before hand.
>From the subject of the message, it sounds like the problem you're
referring to (duplicate pkey) could/should be caught. There is a method
that is run at the end of loading the schema (I believe in
phing/PropelDataModelTask.php) that should throw exceptions on obvious
errors. We just need to add other tests in that method.

Hans

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@pr​opel.tigris.org
For additional commands, e-mail: users-help at propel dot tigris dot org

« Previous message in topic | 15 of 15 | Next message in topic »

Messages

Show all messages in topic

[propel] Syntax error in the manual. matthewh Matthew Hershberger 2004-04-09 07:10:13 PDT
     Re: [propel] Syntax error in the manual. hlellelid Hans Lellelid 2004-04-09 07:20:30 PDT
         Re: [propel] Syntax error in the manual. matthewh Matthew Hershberger 2004-04-09 09:46:16 PDT
             Re: [propel] Syntax error in the manual. hlellelid Hans Lellelid 2004-04-09 12:05:36 PDT
                 [propel] Many-to-Many Relationship Problem matthewh Matthew Hershberger 2004-04-12 10:30:16 PDT
                     Re: [propel] Many-to-Many Relationship Problem hlellelid Hans Lellelid 2004-04-12 11:53:52 PDT
                         Re: [propel] Many-to-Many Relationship Problem matthewh Matthew Hershberger 2004-04-12 12:20:37 PDT
                             RE: [propel] Many-to-Many Relationship Problem "Denny H dot Shimkoski" <dhs at hamfish dot org> "Denny H dot Shimkoski" <dhs at hamfish dot org> 2004-04-12 12:15:32 PDT
                                 RE: [propel] Many-to-Many Relationship Problem hlellelid Hans Lellelid 2004-04-12 12:31:33 PDT
                             [propel] Many-to-Many Relationship Problem Fix matthewh Matthew Hershberger 2004-04-12 12:31:19 PDT
                                 Re: [propel] Many-to-Many Relationship Problem Fix hlellelid Hans Lellelid 2004-04-12 12:34:14 PDT
                                     RE: [propel] Many-to-Many Relationship Problem "Denny H dot Shimkoski" <dhs at hamfish dot org> "Denny H dot Shimkoski" <dhs at hamfish dot org> 2004-04-12 12:27:38 PDT
                                 [propel] Fix applied -- Re: [propel] Many-to-Many Relationship Problem Fix hlellelid Hans Lellelid 2004-04-12 12:42:38 PDT
                                     [propel] Duplicate primaryKey in column does not through error until insert-sql matthewh Matthew Hershberger 2004-04-12 13:16:02 PDT
                                         Re: [propel] Duplicate primaryKey in column does not through error until insert-sql hlellelid Hans Lellelid 2004-04-12 13:25:27 PDT
Messages per page: