Google Groups Home
Help | Sign in
comatose and oracle
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
bretweinraub  
View profile
 More options May 5, 8:40 pm
From: bretweinraub <bretweinr...@gmail.com>
Date: Mon, 5 May 2008 17:40:48 -0700 (PDT)
Local: Mon, May 5 2008 8:40 pm
Subject: comatose and oracle
Anyone out there have success with this lineup?

Right out of the gate I get a

OCIError: ORA-00932: inconsistent datatypes: expected - got CLOB:
select * from (select raw_sql_.*, rownum raw_rnum_ from (SELECT * FROM
comatose_pages WHERE (full_path = '') ) raw_sql_ where rownum <= 1)
where raw_rnum_ > 0

When trying to render the root page.  Monkeying the database to change
full_path to a varchar2(4000) makes this error go away; but I get
other errors down the road.

Just thought I ping the group to see if this rings any bells.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bretweinraub  
View profile
 More options May 6, 12:16 am
From: bretweinraub <bretweinr...@gmail.com>
Date: Mon, 5 May 2008 21:16:23 -0700 (PDT)
Local: Tues, May 6 2008 12:16 am
Subject: Re: comatose and oracle
I got a *mostly* working oracle config w/ Rails 2.0.2.

I still had to change the type of full_path to varchar2.

It appears that the problem is with active record; the full_path = ''
section
of the where clause is not valid for Oracle SQL.

I didn't do this via db:migrate; so I had to alter the generated
schema.rb.

Everything worked for me at this point with the exception of the home
page; which
I was able to make function by going directly into the database and
changing
the full_path into something other than ''.

-bdw

On May 5, 6:40 pm, bretweinraub <bretweinr...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thibaut Barrère  
View profile
 More options May 6, 11:37 am
From: Thibaut Barrère <thibaut.barr...@gmail.com>
Date: Tue, 6 May 2008 08:37:38 -0700 (PDT)
Local: Tues, May 6 2008 11:37 am
Subject: Re: comatose and oracle
Hi bdw,

could it be related to this issue (on mysql this time) :
http://code.google.com/p/comatose-plugin/issues/detail?id=31 ?

-- Thibaut


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bretweinraub  
View profile
 More options May 12, 2:01 pm
From: bretweinraub <bretweinr...@gmail.com>
Date: Mon, 12 May 2008 11:01:25 -0700 (PDT)
Local: Mon, May 12 2008 2:01 pm
Subject: Re: comatose and oracle
I posted one reply but it never appeared.  Trying again.

I don't think it is related to below, because I was able to fix the
problem
by altering the database schema and changing full_text field to a
varchar.

I can  also make the original ActiveRecord generated SQL work by
wrapping
the full_path field  in the Oracle 'TO_CHAR' function.  So from my
perspective
this is some issue with ActiveRecord and Oracle CLOB fields.

Thanks,
Bret

On May 6, 9:37 am, Thibaut Barrère <thibaut.barr...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google