Re: EOF & pgSQL join syntax
Re: EOF & pgSQL join syntax
- Subject: Re: EOF & pgSQL join syntax
- From: Arturo PĂ©rez <email@hidden>
- Date: Sat, 1 May 2004 08:32:38 -0400
On May 1, 2004, at 7:53 AM, Giorgio Valoti wrote:
On 01/mag/04, at 08:00, Arturo Pirez wrote:
Hi all,
Since what I was supposed to be working on isn't and I took this as a
challenge to my manhood I hereby present you with a SQL92 compliant
join syntax plugin for pgSQL. I didn't expect it to be this much
trouble but sometimes I feel a certain je ne se quoi that makes me
spend way too much time on this sort of thing. I also reenabled
Giorgio's fix in this copy. The code isn't optimal but since my join
fu is not what it should be I didn't want to go too much further.
Needless to say, I haven't extensively tested this. However, my
applications work with it and even do that left outer join I
originally
wanted so many hours ago :-)
Well done, Arturo!
I was working on the same issue and I've come up with a different
patch that just overrides assembleSelectStatementWithAttributes.
I don't know which one is to be preferred, though... So here it is:
Nice work, Giorgio. I have a question or two, though. I don't know
how important it is but does your solution preserve the order of the
join statements? The other one is that I had a dickens of a time
making sure that a table only appeared once in the join clause other
pgSQL complained. How does your solution handle that?
All things being equal, I think your solution, being much shorter and
easier to understand, should be the preferred one.
The code that figures out table names from the relationship name should
be preserved for future generations, though. :-)
----
WO in philadelphia - wanna cheesesteak with that?
Please visit webobjects.meetup.com.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.