logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

[psycopg] #10: ProgrammingError instead of IntegrityError: msg#00030

Subject: [psycopg] #10: ProgrammingError instead of IntegrityError
#10: ProgrammingError instead of IntegrityError
----------------------+-----------------------------------------------------
       Id:  10        |      Status:  new                             
Component:  psycopg1  |    Modified:  Tue 12 Apr 2005 01:46:56 PM CEST
 Severity:  normal    |   Milestone:  PSYCOPG 1.1.19                  
 Priority:  normal    |     Version:  1.1.18                          
    Owner:  fog       |    Reporter:  fog                             
----------------------+-----------------------------------------------------
 I'm playing around with the examples and in the integrity.py example,
 at the place where I expect an IntegrityError (around line 47), I got
 a ProgrammingError:

 {{{
 ,----
 | ProgrammingError: ERROR:  duplicate key violates unique constraint
 "test_integrity_val_key"
 |
 | INSERT INTO test_integrity VALUES (0)
 `----
 }}}

-- 
Ticket URL: <http://initd.org/tracker/psycopg/ticket/10>
psycopg <http://initd.org/>
psycopg
_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/+sw@xxxxxxxxxxxxxxxx
http://lists.initd.org/mailman/listinfo/psycopg
<Prev in Thread] Current Thread [Next in Thread>