Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Jdbc > Re: determine i...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 1873 of 2089
Post > Topic >>

Re: determine if a column is UNIQUE using metadata

by books@[EMAIL PROTECTED] (Kris Jurka) Jan 20, 2008 at 10:15 AM

On Sat, 19 Jan 2008, Peter Michaux wrote:

> I've been trying to determine if a column is UNIQUE. I've been trying
> to use the following
>
> connection.getMetaData().getIndexInfo(null, "", "comment", false, true);
>
> but it always says that the columns are not unique.
>
> Am I on the right track with the above technique or should I be trying
> to do something totally different?
>

The driver's test suite includes a test for ensuring NON_UNIQUE is 
returned correctly and it works for me.  Could you post a complete example

(including table/index creation) of it failing.

Kris Jurka

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




 2 Posts in Topic:
determine if a column is UNIQUE using metadata
petermichaux@[EMAIL PROTE  2008-01-19 16:43:00 
Re: determine if a column is UNIQUE using metadata
books@[EMAIL PROTECTED]   2008-01-20 10:15:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 6:14:47 CST 2008.