Skip to content

Commit

Permalink
supports_insert_with_returning? caches false result also
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Jun 11, 2008
1 parent d0b3685 commit 23df8be
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -324,9 +324,12 @@ def supports_standard_conforming_strings?
end end


def supports_insert_with_returning? def supports_insert_with_returning?
@supports_insert_with_returning ||= unless defined? @supports_insert_with_returning
@connection.respond_to?(:server_version) && @supports_insert_with_returning =
@connection.server_version >= 80200 @connection.respond_to?(:server_version) &&
@connection.server_version >= 80200
end
@supports_insert_with_returning
end end


# Returns the configured supported identifier length supported by PostgreSQL, # Returns the configured supported identifier length supported by PostgreSQL,
Expand Down

0 comments on commit 23df8be

Please sign in to comment.