Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Problem
- Using Oracle 10g JDBC driver
- JRuby 1.1.4
- active-record-adapter 0.8.2
- The query that is sent to Oracle have quotes where it should not
- ## person.rb
- class Person < ActiveRecord::Base
- set_table_name :'BOTS.USERS'
- ## script/console
- >> Person.find(1)
- ActiveRecord::StatementInvalid: ActiveRecord::ActiveRecordError: ORA-00942: table or view does not exist
- : SELECT * FROM "BOTS.USERS" WHERE ("BOTS.USERS".id = 1)
- # Should be SELECT * FROM BOTS.USER (no quotes)
Add Comment
Please, Sign In to add comment