Displaying 20 results from an estimated 900 matches similar to: "Re: Rails AR/Oracle Unit Test: [4280] failed"
2006 Apr 06
7
[Fwd: Rails AR/Oracle Unit Test: [4185] failed]
So my automated script caught this issue, though I think my email
headers were bad, so rails-core has put the automated email on hold
pending "moderation".
I''ll fix that issue, and look at the one below as well.
-------- Original Message --------
Subject: Rails AR/Oracle Unit Test: [4185] failed
Date: Thu, 6 Apr 2006 08:32:04 -0700
From: Michael Schoen
2006 Mar 23
11
ActiveRecord: Oracle metadata loading slow on large database
All,
While attempting to use ActiveRecord against a large database, approx.
1700 tables and 4 million rows, I discovered an inefficiency in
oci_adapter.rb. The problem seems to be the SQL being generated to
lazy-load the columns metadata. "def columns(table_name, name = nil)"
method generates the following SQL:
select column_name, data_type, data_default, nullable,
2006 Oct 16
6
Rails AR/Oracle Unit Test: [5310] failed (but getting better)
"rick" has given AR/Oracle some love, but it''s still unhappy...
http://dev.rubyonrails.org/changeset/5310
------------------------------------------------------------------------
r5310 | rick | 2006-10-16 08:42:55 -0700 (Mon, 16 Oct 2006) | 1 line
Fix has_many :through to add the appropriate conditions when going through an association using STI. Closes #5783. [Jonathan Viney]
2006 Apr 04
6
Oracle Problem. Maybe driver
EVerything runs ok on my local machine but when i copy my app to our
solaris server everything is fine until i try updating/inserting
something into the DB.
This is the error message :
wrong number of arguments (1 for 0)
RAILS_ROOT: config/..
Application Trace | Framework Trace | Full Trace
2008 Dec 05
1
ActiveRecord Oracle and nvarchar2 or nclob datatype
Hi,
I ve got oracle database which exists prior to my rails app... :-(
I ve got trouble when I am updating/inserting records of a table which
includes nvarchar2 attributes.
These have a specific maximum length.
I often get an error Value too long for column when doing my inserts/
updates, but in fact that is not the case.
I ve taken a look at the generated sql statements....
As far as I know
2006 Mar 28
4
Problem with ActiveRecord, create, save, and Oracle adapter?
Hi all,
Ruby 1.8.4
Rails 1.1
OCI8 0.1.14
I think I''m hitting an issue with ActiveRecord::Base#save and the Oracle
adapter. Line 158 in the schedules_controller.rb file is simply:
158: if @schedule.save
159: flash[:notice] = ''Schedule was successfully created.''
160: redirect_to :action => ''list''
161: else
162: render :action =>
2007 Mar 20
31
Another mongrel_cluster prerelease 1.0.1.1
Hi all...
Hopefully this is the last prelease. If people on non-linux systems
could post back any problems with cluster::status, I''d appreciate it.
Install with:
gem install mongrel_cluster --source http://mongrel.rubyforge.org/releases/
Note: This is only an update to mongrel_cluster and not Mongrel or other
gems.
Details about what''s new (if you missed the first
2006 Jan 19
7
bug in has_many count?
I can submit a patch, but wanted to confirm I''m looking at this right...
The docs indicate that if you specify a has_many association with
:finder_sql, but no :counter_sql, it constructs the appropriate counter
sql by substituting the SELECT clause.
But has_many_association.rb doesn''t seem to do that -- it just passes
Base#count_by_sql the finder_sql, which doesn''t
2006 Oct 13
5
RoR + oracle + bind vars
Hi,
I have a question about bundle: RoR + oracle + bind variables.
Heaving read forums/blogs/etc I found out RoR does not use bind vars
for oracle particularly (and for all adapters in general).
Then I found Michael''s patch
(http://dev.rubyonrails.org/attachment/ticket/5199/oracle_bind.patch)
but it was not added to the following RoR versions (since the end of
May). As I suppose it was
2007 Mar 21
2
ORA-03106: fatal two-task communication protocol error
Has anyone encountered this error or know how to correct it?
I couldn''t find any Rails-specific info about this on google.
Here are the circumstances:
/usr/local/bin/ruby --version
ruby 1.8.4 (2005-12-24) [i686-linux]
/usr/local/bin/rails --version
Rails 1.1.6
## Create mcd app
rails mcd -d oracle
cd mcd
## Create oracle tablespace & user
sqlplus ''/ as
2006 Feb 12
16
Mongrel 0.3.1 -- New Site/Runs Right
Hello All,
Yet another release of Mongrel proudly pushed out for everyone to review and
comment on. This time though, I''ve done up a little website that''s *way*
better than the plan Rdoc that used to stand in for the site like a
one-legged leper.
* http://mongrel.rubyforge.net/
As you should already know, Mongrel is a fast HTTP server and library for
Ruby partially written in
2006 Aug 08
11
When will rails support true prepared statements?
I''m in an Oracle shop, and it''s the 1 thing that gets on my bosses
nerves. I wish they would support this.
Anyone any idea if or when it will be supported?
Thanks
Chris
--
Posted via http://www.ruby-forum.com/.
2010 Aug 16
2
Form validation and processing w/o model (no Db/ActiveRecord)
All -
Trying not to fight rails on this, basically have a form and all the same as
would be with an ActiveRecord model except that there is no table. I started
out using this article:
http://stackoverflow.com/questions/315850/rails-model-without-database
...which is kind of a hack by inheriting ActiveRecord in to non-AR model but
am running into some problems and just have the feeling that I am
2008 Jan 04
2
oracle adapter + activerecord sessions do not work
Anyone know what''s up with the activerecord session store when using
the oracle adapter in Rails 2.0.2 ?
I can set a session variable and can then see it''s actually set using
the debugger, but after the request completes the session is empty
(the @data member is nil). The session_id is staying the same and the
updated_at field is being updated but nothing I put in a session
2006 Aug 02
3
Active Record
I want to build a one page finance calculator in Rails.
The form has several fields on it. When I press the calculate button
it will return to the same page with the answer. If there is an error
it will also return to the same page with the appropriate error
messages.
I want it to be able to
1. Carry over all the values on the form fields
2. Use the rails validation methods
How can I acheive
2006 Mar 06
5
Oracle XMLType data
Howdy folks,
Has anyone had any luck getting Oracle''s XMLType to play nicely with
Rails? According to the docs, it''s just a wrapper around CLOB.
However the ruby-oci8 driver throws an exception about user defined
types if you try to query a table with an XMLType column.
Any pointers would be appreciated.
Thanks,
-wilig
2006 Mar 29
2
AR 1.14 oracle_adater.rb does not work
the error is :
wrong number of arguments (1 for 0)
where :
active_record/connection_adapters/oracle_adapter.rb:53:in
`attributes_with_quotes_pre_oracle''
this method is new, it was an alias in the previous version :
alias :attributes_with_quotes_pre_oci :attributes_with_quotes
#:nodoc:
I replaced the method by the alias of the previous version, and it is
working fine.
This is
2008 Dec 25
2
Switching to active_record_store session management errors out
Hello,
Running Ruby 1.8.6 and Rails 2.2.2 against an Oracle XE database
(sigh).
I just upgraded Rails from 1.2.3 to 2.2.2, which made my cookie based
system for storing session information to error out due to the 4Kb
limit. So, I tried to turn on the active_record_store system by un-
commenting out the "config.action_controller.session_store
= :active_record_store" line in
2002 Jun 23
1
Using MTOOLS in place of loopback mounting
I am trying to build a distribution without having to be root. The
SYSLINUX installer typically needs root to do loopback mounting, but
if you have MTOOLS, you can use that instead. This seems to work so
far:
#!/bin/sh
# A minimal replacement for /usr/bin/syslinux; assumes that ldlinux.sys
# and ldlinux.bss are available in the current directory. You must
# specify locations of mkdosfs and
2006 Jul 21
2
Tableless ActiveRecord attribute and my aching head
I beat my head against a wall for almost 2 hours with this issue.
My first problem was easily solved. I wanted a class that could use
ActiveRecord''s validation capabilities but without using a table behind
it (I would be persisting setup information in the session, but the
initial setup parameters come from a user input form)
No problem...found this link which got me up and running