aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-14 22:19:37 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-14 22:19:37 -0300
commit095c42efcb03dc11dd038a73daefe39d545e14a9 (patch)
tree14d44afc2f296b632de3fd86b57ccc9ff53a9043 /activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
parenta11e2fcff8cdc9691b977d8330abe63024f8c732 (diff)
parentc0bfc3f412834ffe8327a15ae3a46602cc28e425 (diff)
downloadrails-095c42efcb03dc11dd038a73daefe39d545e14a9.tar.gz
rails-095c42efcb03dc11dd038a73daefe39d545e14a9.tar.bz2
rails-095c42efcb03dc11dd038a73daefe39d545e14a9.zip
Merge pull request #15088 from kares/shareable-modules
[postgres] remove (outer) sub-class declarations with nested modules/classes
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
index 168b08ba75..89a7257d77 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
@@ -1,6 +1,6 @@
module ActiveRecord
module ConnectionAdapters
- class PostgreSQLAdapter < AbstractAdapter
+ module PostgreSQL
module DatabaseStatements
def explain(arel, binds = [])
sql = "EXPLAIN #{to_sql(arel, binds)}"
@@ -94,6 +94,11 @@ module ActiveRecord
super.insert
end
+ # The internal PostgreSQL identifier of the money data type.
+ MONEY_COLUMN_TYPE_OID = 790 #:nodoc:
+ # The internal PostgreSQL identifier of the BYTEA data type.
+ BYTEA_COLUMN_TYPE_OID = 17 #:nodoc:
+
# create a 2D array representing the result set
def result_as_array(res) #:nodoc:
# check if we have any binary column and if they need escaping