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: Patch for S...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1865 of 1984
Post > Topic >>

Re: Patch for Statement.getGeneratedKeys()

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

On Mon, 14 Jan 2008, Ken Johanson wrote:

> That makes sense to me now, thanks. In any case do you agree that we
still 
> need to parse the fully qualified table, in case of input like:
>
> insert into postgres.public.test ...

That depends what your approach is for non-qualified tables as it would be

odd to do it differently for the two cases.  (Just got your other email). 
Since you don't like "RETURNING *", you will need to be able to parse a 
fully qualified name, but you also must be able to parse and then qualify 
a non-fully qualified name.

> I don think my earlier question about getting the current/default
catalog 
> name is relevant since the query can specify other ones. True?
>

Not really, you can only specify the current database.  If you try 
it with something else you get:

jurka=# select * from jurka.schema.tab;
ERROR:  schema "schema" does not exist

jurka=# select * from otherdb.schema.tab;
ERROR:  cross-database references are not implemented: 
"otherdb.schema.tab"

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match




 3 Posts in Topic:
Re: Patch for Statement.getGeneratedKeys()
books@[EMAIL PROTECTED]   2008-01-15 00:45:17 
Re: Patch for Statement.getGeneratedKeys()
pg-user@[EMAIL PROTECTED]  2008-01-15 00:08:59 
Re: Patch for Statement.getGeneratedKeys()
pg-user@[EMAIL PROTECTED]  2008-01-15 00:19:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan13V112 Fri Jul 4 9:41:05 CDT 2008.