pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedHelp !! Postgres on JDeveloper+ADF
4+ messages / 4 participants
[nested] [flat]
* Help !! Postgres on JDeveloper+ADF
@ 2005-09-21 14:50 andres@sayago.info
0 siblings, 2 replies; 4+ messages in thread
From: andres@sayago.info @ 2005-09-21 14:50 UTC (permalink / raw)
To: pgsql-jdbc
Hello again.
I can't find the solution. I need to use PostgreSQL on JDeveloper using
ADF. I get an error about "check sintaxis". The problem is that ADF use
aliases for UPDATE statements, and PostgreSQL not (MySQL yes!!).
Can you help me??
Andrés Sáyago
Bogotá D.C., Colombia
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Help !! Postgres on JDeveloper+ADF
@ 2005-09-21 17:16 Mike Warnecke <mike@audiowarehouse.ca>
parent: andres@sayago.info
1 sibling, 0 replies; 4+ messages in thread
From: Mike Warnecke @ 2005-09-21 17:16 UTC (permalink / raw)
To: andres@sayago.info; +Cc: pgsql-jdbc
On Wed, 2005-21-09 at 08:50 -0600, andres@sayago.info wrote:
> Hello again.
>
> I can't find the solution. I need to use PostgreSQL on JDeveloper using
> ADF. I get an error about "check sintaxis". The problem is that ADF use
> aliases for UPDATE statements, and PostgreSQL not (MySQL yes!!).
>
> Can you help me??
As said before, you need to write a JDBC driver that will remove the
aliases from updates, and then send the rewritten query to postgresql.
--
Mike Warnecke <mike@audiowarehouse.ca>
Audio Warehouse
Attachments:
signature.asc (application/pgp-signature, 188B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Help !! Postgres on JDeveloper+ADF
@ 2005-09-21 17:22 Craig Servin <cservin@cromagnon.com>
parent: andres@sayago.info
1 sibling, 0 replies; 4+ messages in thread
From: Craig Servin @ 2005-09-21 17:22 UTC (permalink / raw)
To: pgsql-jdbc
The way that I would deal with this is by implementing a JDBC driver. I would
cheat with a java.lang.reflect.Proxy which really just passes everything to
the PostreSQL JDBC driver but parses the statements and removes the alias.
It should not be too hard. But since this is so specific to your situation I
do not think anyone is going to do it for you. I think that a
java.lang.reflect.Proxy is the way to go.
On Wednesday 21 September 2005 09:50 am, andres@sayago.info wrote:
> Hello again.
>
> I can't find the solution. I need to use PostgreSQL on JDeveloper using
> ADF. I get an error about "check sintaxis". The problem is that ADF use
> aliases for UPDATE statements, and PostgreSQL not (MySQL yes!!).
>
> Can you help me??
>
> Andrés Sáyago
> Bogotá D.C., Colombia
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Help !! Postgres on JDeveloper+ADF
@ 2005-09-21 18:32 Nicolaus.Bauman@wellsfargo.com
0 siblings, 0 replies; 4+ messages in thread
From: Nicolaus.Bauman@wellsfargo.com @ 2005-09-21 18:32 UTC (permalink / raw)
To: cservin@cromagnon.com; pgsql-jdbc
Can I add to this that if someone decides to scratch with this idea, that they remap SYSDATE to CURRENT_DATE, too? Probably worthwhile to get a list of "Oracle Annoyances" before starting this project.
Nicolaus Bauman
Developer: TIR - SPS
* 612.667.2170
* 612.232.7120
This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.
> -----Original Message-----
> From: pgsql-jdbc-owner@postgresql.org
> [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Craig Servin
> Sent: Wednesday, September 21, 2005 12:23 PM
> To: pgsql-jdbc@postgresql.org
> Subject: Re: [JDBC] Help !! Postgres on JDeveloper+ADF
>
>
> The way that I would deal with this is by implementing a JDBC
> driver. I would
> cheat with a java.lang.reflect.Proxy which really just passes
> everything to
> the PostreSQL JDBC driver but parses the statements and
> removes the alias.
>
> It should not be too hard. But since this is so specific to
> your situation I
> do not think anyone is going to do it for you. I think that a
> java.lang.reflect.Proxy is the way to go.
>
>
>
> On Wednesday 21 September 2005 09:50 am, andres@sayago.info wrote:
> > Hello again.
> >
> > I can't find the solution. I need to use PostgreSQL on
> JDeveloper using
> > ADF. I get an error about "check sintaxis". The problem is
> that ADF use
> > aliases for UPDATE statements, and PostgreSQL not (MySQL yes!!).
> >
> > Can you help me??
> >
> > Andrés Sáyago
> > Bogotá D.C., Colombia
> >
> > ---------------------------(end of
> broadcast)---------------------------
> > TIP 5: don't forget to increase your free space map settings
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2005-09-21 18:32 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-09-21 14:50 Help !! Postgres on JDeveloper+ADF andres@sayago.info
2005-09-21 17:16 ` Mike Warnecke <mike@audiowarehouse.ca>
2005-09-21 17:22 ` Craig Servin <cservin@cromagnon.com>
2005-09-21 18:32 Re: Help !! Postgres on JDeveloper+ADF Nicolaus.Bauman@wellsfargo.com
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox