Talk About Network

Google





Data Bases > Pgsql Interfaces Jdbc > Re: Patch for S...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 7 Topic 1866 of 2101
Post > Topic >>

Re: Patch for Statement.getGeneratedKeys()

by tgl@[EMAIL PROTECTED] (Tom Lane) Jan 16, 2008 at 10:01 AM

Ken Johanson <pg-user@[EMAIL PROTECTED]
> writes:
> Here is what I have so far (not sure of my conditionals yet or if I need

> any joins for them):

> select attname from pg_attribute
> where attrelid = 'postgres.public.test'::regclass
> and attstattarget=-1
> and attisdropped='f'
> order by attnum asc

I'd do "where attrelid = ... and attnum > 0 and not attisdropped".
Not sure what you think the attstattarget condition would accompllish,
but it doesn't seem like anything that client-side code ought to be
touching.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq
 




 7 Posts in Topic:
Re: Patch for Statement.getGeneratedKeys()
books@[EMAIL PROTECTED]   2008-01-15 02:27:46 
Re: Patch for Statement.getGeneratedKeys()
tgl@[EMAIL PROTECTED] (T  2008-01-15 10:32:10 
Re: Patch for Statement.getGeneratedKeys()
pg-user@[EMAIL PROTECTED]  2008-01-16 00:09:29 
Re: Patch for Statement.getGeneratedKeys()
tgl@[EMAIL PROTECTED] (T  2008-01-16 02:38:37 
Re: Patch for Statement.getGeneratedKeys()
pg-user@[EMAIL PROTECTED]  2008-01-16 01:12:13 
Re: Patch for Statement.getGeneratedKeys()
tgl@[EMAIL PROTECTED] (T  2008-01-16 10:01:58 
Re: Patch for Statement.getGeneratedKeys()
tivvpgsqljdbc@[EMAIL PROT  2008-01-16 11:30:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
localhost-V2008-12-19 Fri Jan 9 20:56:13 PST 2009.