search for: _by_sql

Displaying 1 result from an estimated 1 matches for "_by_sql".

Did you mean: by_sql
2006 Jan 16
2
ActiveRecord: table name with spaces?
...lserver_adapter.rb:467:in `select'' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_recor d/connection_adapters/sqlserver_adapter.rb:227:in `select_all'' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_recor d/base.rb:431:in `find_by_sql'' ------------------- I see from the exception method that it hasn''t delimited the table name. There may be more than one way to do this in T-SQL, but what I''m familiar with is putting [ ] around the table name. If I do my own manual find_by_sql and put "select * f...