From: | Cosmin Coroiu <crosby(at)sec(dot)co(dot)ro> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Duplicate key identification |
Date: | 2002-03-13 06:20:29 |
Message-ID: | 1016000429.3900.0.camel@crosby |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Hello all !
I have the following problem : I work on a Java database
backup/restore tool which should work with some different database
engines like Oracle , AdabasD and PostgreSQL using JDBC.My problem is a
way to identify the 'Duplicate key ' error for all these database
engines.For AdabasD and Oracle is can be done using the getErrorCode()
method but not for PostgreSQL. Right now I'm using not a very nice way :
searching in the error message.Does anybody knows other better solution
? Error messages in PostgreSQL are language dependent ?
Thanks in advance ,
Crosby.
--
"Whatever you do will be insignificant, but it is very important
that you do it." --Mahatma Gandhi
ICQ #35594993 Linux Registered User #216853
From | Date | Subject | |
---|---|---|---|
Next Message | pin.o.za | 2002-03-13 06:47:47 | Help |
Previous Message | Joe Shevland | 2002-03-13 03:30:39 | Re: SQLException subclasses |