Would need much more detail here including a full stack trace, what line you're 
referring to in _flush(), and preferably code which reproduces the error you're 
seeing.


On Jan 4, 2013, at 1:55 AM, Gurjar, Unmesh wrote:

> Hi,
>  
> I have installed SQLAlchemy 0.7.9 (backend – MySQL, Python 2.7). I have a 
> defined a table having a uniqueness constraint. On inserting a record which 
> violates this constraint, my application gets a ‘TypeError’ exception instead 
> of ‘IntegrityError’.
>  
> After debugging the issue, I found that it can be resolved by replacing the 
> 'raise' statement by 'raise exc' in _flush( ) method of 
> sqlalchemy/orm/session.py. Can someone please confirm if this should be the 
> expected behavior?
>  
> Thanks & Regards,
> Unmesh Gurjar.
>  
> 
> ______________________________________________________________________
> Disclaimer:This email and any attachments are sent in strictest confidence 
> for the sole use of the addressee and may contain legally privileged, 
> confidential, and proprietary data. If you are not the intended recipient, 
> please advise the sender by replying promptly to this email and then delete 
> and destroy this email and any attachments without any further use, copying 
> or forwarding
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> To unsubscribe from this group, send email to 
> sqlalchemy+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sqlalchemy?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to