List Info

Thread: Ruby/Rails and Oracle




Ruby/Rails and Oracle
user name
2006-04-25 14:18:02
It's not so much a driver issue as an issue of the SQL your
OR mapper
generates.  They could have created an Oracle 8i dialect for
Active
Record, if that is possible.  The issue is that 8i does not
support the
ANSI join syntax as in this example:

9i syntax (ANSI):

SELECT pub_name, title
FROM publishers
INNER JOIN titles ON publishers.pub_id = titles.pub_id

You would have to rewrite it like this:

8i syntax:

SELECT pub_name, title
FROM publishers, titles
where publishers.pub_id = titles.pub_id


Thomas


> One of Obie's colleagues stated that since the db they
were using
> didn't support joins the way active record did them (I
think that is
> what he was saying), that they had to write the sql for
all of their
> queries. I was wondering if there was a reason why they
didn't make
> their own db "driver" and open source it?
>
> --
> Randy Schmidt
> xaltorg.com
> 267.334.6833
> _______________________________________________
> talk mailing list
> talkphillyonrails.org
> 
http://lists.phillyonrails.org/mailman/listinfo/talk
>

_______________________________________________
talk mailing list
talkphillyonrails.org

http://lists.phillyonrails.org/mailman/listinfo/talk
Validators in a model's validator_list (m-r)
user name
2006-04-25 14:40:09
Christian Schneider wrote:
> Michael,
> 
> I'm still using a generic view. I played with some
custom functions before
> and they were called so I'd hoped that it would work
with the validator
> objects as well.

I looked in the source. Aha! First parameter to
RequiredIfOtherField is
the *name* of the field (a string, not a field).

Please try and report ...

By the way, where did you find any documentation about this
at all?


Michael


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )