PDA

View Full Version : JDeveloper SQL92 Table Alias


William T. Mann
12-03-2004, 04:07 AM
Hello everyone,

I need to use JDeveloper 10g with a postgresql database. I'm making a fast
and dirty Swing/ADF JClient and everything "seems" to work fine, until I
try to update some data. I then get an error because JDeveloper is not
using the (optional) AS keyword to alias the database tables. The AS
keyword for postgresql is mandatory and there sits my problem. Is it
possible to configure JDeveloper ADF framework to use the AS keyword when
aliasing the tables somewhere? Has anyone else ran into this problem and
solved it?

Thanks for any help.

William

William T. Mann
12-04-2004, 05:32 AM
William T. Mann wrote:
Hello everyone, I need to use JDeveloper 10g with a postgresql database. I'm making a fast and dirty Swing/ADF JClient and everything "seems" to work fine, until I try to update some data. I then get an error because JDeveloper is not using the (optional) AS keyword to alias the database tables. The AS keyword for postgresql is mandatory and there sits my problem. Is it possible to configure JDeveloper ADF framework to use the AS keyword when aliasing the tables somewhere? Has anyone else ran into this problem and solved it?

After further investigation, it seems that the problem happens when aliasing
tables on the UPDATE clause, and possibly the INSERT and DELETE clauses.
This gives an error in postgresql: 'UPDATE table Alias SET field1 = ?' --
you can't alias the table in this context; whereas, in the normal SELECT
query, the AS keyword is optional as specified by the SQL92 standard. Any
ideas?

William


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service