Displaying 9 results from an estimated 9 matches for "quote_bound_valu".
Did you mean:
quote_bound_value
2005 Mar 23
1
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)
.../lib/active_record/connection_adapters/abstract_adapter.rb:100:in
`retrieve_connection''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.9.0/lib/active_record/base.rb:222:in
`connection''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.9.0/lib/active_record/base.rb:861:in
`quote_bound_value''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.9.0/lib/active_record/base.rb:841:in
`replace_bind_variables''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.9.0/lib/active_record/base.rb:841:in
`gsub''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.9.0/l...
2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
...active_record/connect
ion_adapters/abstract/quoting.rb:22:in `quote''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connect
ion_adapters/mysql_adapter.rb:123:in `quote''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb
:1305:in `quote_bound_value''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb
:1287:in `replace_bind_variables''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb
:1287:in `replace_bind_variables''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecor...
2009 Nov 17
5
has_many :through and foo.bars.include?
...ection_adapters/mysql_adapter.rb:226:in `kind_of?''
from /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.4/lib/
active_record/connection_adapters/mysql_adapter.rb:226:in `quote''
from /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.4/lib/
active_record/base.rb:2392:in `quote_bound_value''
from /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.4/lib/
active_record/base.rb:2352:in `replace_bind_variables''
from /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.4/lib/
active_record/base.rb:2352:in `gsub''
from /usr/lib64/ruby/gems/1.8/gems/a...
2006 Jan 05
2
Rails 1.0 Crashing: Errno::EPIPE (Broken pipe):
....rb:103:in
`retrieve_connection
''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/conn
ection_adapters/abstract/connection_specification.rb:20:in `connection''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base
.rb:1152:in `quote_bound_value''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base
.rb:1133:in `replace_bind_variables''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base
.rb:1133:in `replace_bind_variables''
/usr/local/lib/ruby/gems/1.8/g...
2007 Aug 06
4
problem with rails_root
...pecification.rb:230:in
`retrieve_connection''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
`connection''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1456:in
`quote_bound_value''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in
`replace_bind_variables''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in
`gsub''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/acti...
2006 Jul 05
2
Serialized object behaves weird
Hi!
I got a class named EinsatzFilter which I serialized to session. Before
saving to session it works afterwards I keep getting the message:
"undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from
ActiveRecord::Base inherited class.
Code:
class EinsatzFilter
include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
2006 Jun 19
3
can''t dump anonymous class Class
I''m trying to create a document upload system, where most of the code is
the super class Document and just the path to file on the system is
controlled by the sub classes. When I attempt to use my code, I get the
following when I try to save the document.
can''t dump anonymous class Class
Any ideas?
** Migration **
class CreateDocuments < ActiveRecord::Migration
def
2006 Jun 30
0
find_by_sql not quoting properly (in acts_as_taggable plugin)
...base.rb and the call tree: (dive
in yourself if you prefer...)
find_by_sql(sql)
sanitize_sql(sql)
statement, *values = sql
replace_bind_variables(statement, values)
bound = values.dup
statement.gsub(''?'') { quote_bound_value(bound.shift) }
if (value.respond_to?
(:map) && !value.is_a?(String))
value.map { |v|
connection.quote(v) }.join('','')
else...
2007 Jul 30
3
validates_uniqueness_of doesn't work if value tested is numeric and column is string
Hello all,
I am working through the depot example in the rails book. If I add a
validates_uniqueness_of to a string column in the model, and then try
to create a record with a number in this string column I get an SQL
error. Looks like the SQL generated to test for uniqueness does not
quote the value if it''s numeric even though it''s comparing against a
varchar column. It does