{"action":"created","issue":{"url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/609","labels_url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/609/labels{/name}","comments_url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/609/comments","events_url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/609/events","html_url":"https://github.com/rsim/oracle-enhanced/issues/609","id":83522163,"number":609,"title":"Legacy schema support","user":{"login":"DemidenkoAndrey","id":8194192,"avatar_url":"https://avatars.githubusercontent.com/u/8194192?v=3","gravatar_id":"","url":"https://api.github.com/users/DemidenkoAndrey","html_url":"https://github.com/DemidenkoAndrey","followers_url":"https://api.github.com/users/DemidenkoAndrey/followers","following_url":"https://api.github.com/users/DemidenkoAndrey/following{/other_user}","gists_url":"https://api.github.com/users/DemidenkoAndrey/gists{/gist_id}","starred_url":"https://api.github.com/users/DemidenkoAndrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemidenkoAndrey/subscriptions","organizations_url":"https://api.github.com/users/DemidenkoAndrey/orgs","repos_url":"https://api.github.com/users/DemidenkoAndrey/repos","events_url":"https://api.github.com/users/DemidenkoAndrey/events{/privacy}","received_events_url":"https://api.github.com/users/DemidenkoAndrey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-01T14:19:46Z","updated_at":"2015-10-12T22:11:59Z","closed_at":"2015-10-12T20:58:23Z","body":"When I try to create or select record, for example:\r\n```ruby \r\nClient.new\r\n```\r\nresults in error:\r\n```ruby\r\nNoMethodError: undefined method `without_prepared_statement?' for #<ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter:0x000000054d0dc8>: SELECT column_name AS name, data_type AS sql_type, data_default, nullable, virtual_column, hidden_column, data_type_owner AS sql_type_owner, DECODE(data_type, 'NUMBER', data_precision, 'FLOAT', data_precision, 'VARCHAR2', DECODE(char_used, 'C', char_length, data_length), 'RAW', DECODE(char_used, 'C', char_length, data_length), 'CHAR', DECODE(char_used, 'C', char_length, data_length), NULL) AS limit, DECODE(data_type, 'NUMBER', data_scale, NULL) AS scale FROM all_tab_cols WHERE owner = 'ADMIN' AND table_name = 'CLIENTS' AND hidden_column = 'NO' ORDER BY column_id\r\nActiveRecord::StatementInvalid: NoMethodError: undefined method `without_prepared_statement?' for #<ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter:0x000000054d0dc8>: SELECT column_name AS name, data_type AS sql_type, data_default, nullable, virtual_column, hidden_column, data_type_owner AS sql_type_owner, DECODE(data_type, 'NUMBER', data_precision, 'FLOAT', data_precision, 'VARCHAR2', DECODE(char_used, 'C', char_length, data_length), 'RAW', DECODE(char_used, 'C', char_length, data_length), 'CHAR', DECODE(char_used, 'C', char_length, data_length), NULL) AS limit, DECODE(data_type, 'NUMBER', data_scale, NULL) AS scale FROM all_tab_cols WHERE owner = 'ADMIN' AND table_name = 'CLIENTS' AND hidden_column = 'NO' ORDER BY column_id\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-oracle_enhanced-adapter-1.5.6/lib/active_record/connection_adapters/oracle_enhanced_database_statements.rb:28:in `block in exec_query'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:425:in `block in log'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.0.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:420:in `log'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-oracle_enhanced-adapter-1.5.6/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:1261:in `log'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-oracle_enhanced-adapter-1.5.6/lib/active_record/connection_adapters/oracle_enhanced_database_statements.rb:25:in `exec_query'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-oracle_enhanced-adapter-1.5.6/lib/active_record/connection_adapters/oracle_enhanced_database_statements.rb:253:in `select'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/database_statements.rb:24:in `select_all'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-oracle_enhanced-adapter-1.5.6/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:1036:in `columns_without_cache'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-oracle_enhanced-adapter-1.5.6/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:1005:in `columns'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/connection_adapters/schema_cache.rb:114:in `block in prepare_default_proc'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/connection_adapters/schema_cache.rb:56:in `yield'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/connection_adapters/schema_cache.rb:56:in `columns'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/model_schema.rb:208:in `columns'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/model_schema.rb:242:in `column_defaults'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/locking/optimistic.rb:169:in `column_defaults'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/core.rb:181:in `initialize'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/inheritance.rb:27:in `new'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.0.0/lib/active_record/inheritance.rb:27:in `new'\r\n        from (irb):1\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/railties-4.0.0/lib/rails/commands/console.rb:90:in `start'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/railties-4.0.0/lib/rails/commands/console.rb:9:in `start'\r\n        from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/railties-4.0.0/lib/rails/commands.rb:64:in `<top (required)>'\r\n        from bin/rails:4:in `require'\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/comments/147535278","html_url":"https://github.com/rsim/oracle-enhanced/issues/609#issuecomment-147535278","issue_url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/609","id":147535278,"user":{"login":"DemidenkoAndrey","id":8194192,"avatar_url":"https://avatars.githubusercontent.com/u/8194192?v=3","gravatar_id":"","url":"https://api.github.com/users/DemidenkoAndrey","html_url":"https://github.com/DemidenkoAndrey","followers_url":"https://api.github.com/users/DemidenkoAndrey/followers","following_url":"https://api.github.com/users/DemidenkoAndrey/following{/other_user}","gists_url":"https://api.github.com/users/DemidenkoAndrey/gists{/gist_id}","starred_url":"https://api.github.com/users/DemidenkoAndrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemidenkoAndrey/subscriptions","organizations_url":"https://api.github.com/users/DemidenkoAndrey/orgs","repos_url":"https://api.github.com/users/DemidenkoAndrey/repos","events_url":"https://api.github.com/users/DemidenkoAndrey/events{/privacy}","received_events_url":"https://api.github.com/users/DemidenkoAndrey/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T22:11:59Z","updated_at":"2015-10-12T22:11:59Z","body":"@yahonda  Sorry, Your answer was very helpful "}}