Guest User

Untitled

a guest
May 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. ## Problem
  2.  
  3. Using Oracle 10g JDBC driver
  4. JRuby 1.1.4
  5. active-record-adapter 0.8.2
  6.  
  7. The query that is sent to Oracle have quotes where it should not
  8.  
  9. ## person.rb
  10.  
  11. class Person < ActiveRecord::Base
  12. set_table_name :'BOTS.USERS'
  13.  
  14.  
  15. ## script/console
  16.  
  17. >> Person.find(1)
  18. ActiveRecord::StatementInvalid: ActiveRecord::ActiveRecordError: ORA-00942: table or view does not exist
  19. : SELECT * FROM "BOTS.USERS" WHERE ("BOTS.USERS".id = 1)
  20.  
  21. # Should be SELECT * FROM BOTS.USER (no quotes)
Add Comment
Please, Sign In to add comment