Skip site navigation (1) Skip section navigation (2)

Re: Getting status on login failure

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <olarte(dot)andres(at)gmail(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Getting status on login failure
Date: 2005-10-04 20:25:05
Message-ID: s3429edb.053@gwmta.wicourts.gov (view raw or flat)
Thread:
Lists: pgsql-jdbc
Have you tried getSQLState() ?

>>> Andres Olarte <olarte(dot)andres(at)gmail(dot)com> 10/04/05 3:05 PM >>>
Is it possible to get an status code on login failure?  The exception
does return some useful info, but if it's possible to get an error
code, It'll  be easier to show some userfriendly message to the  user
(in spanish, which is another issue).  The code of the exception
always reports 0.

Best Regards,

Andres

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


pgsql-jdbc by date

Next:From: Kevin GrittnerDate: 2005-10-04 20:37:07
Subject: Re: Selecting on non ASCII varchars
Previous:From: Jeremy LaCivitaDate: 2005-10-04 20:16:45
Subject: Re: Selecting on non ASCII varchars

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group