diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-22 18:50:19 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-22 18:50:19 -0700 |
commit | a210f503619dd27dc9575bcae1df596fd2387563 (patch) | |
tree | 651effc01a0f444c66fc774c775214ab7fa489b6 /activerecord | |
parent | 3532eaf92a96b87fb422625142ff0efa1cac17ab (diff) | |
download | rails-a210f503619dd27dc9575bcae1df596fd2387563.tar.gz rails-a210f503619dd27dc9575bcae1df596fd2387563.tar.bz2 rails-a210f503619dd27dc9575bcae1df596fd2387563.zip |
Oops, already had a postgresql_version method!
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index d0585d52ac..5641b5cca5 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -324,12 +324,7 @@ module ActiveRecord end def supports_insert_with_returning? - unless defined? @supports_insert_with_returning - @supports_insert_with_returning = - @connection.respond_to?(:server_version) && - @connection.server_version >= 80200 - end - @supports_insert_with_returning + postgresql_version >= 80200 end # Returns the configured supported identifier length supported by PostgreSQL, |