lib/sequel_core/adapters/shared/postgres.rb
def server_version(server=nil)
        return @server_version if @server_version
        @server_version = synchronize(server) do |conn|
          (conn.server_version rescue nil) if conn.respond_to?(:server_version)
        end
        unless @server_version
          m = /PostgreSQL (\d+)\.(\d+)\.(\d+)/.match(get(:version[]))
          @server_version = (m[1].to_i * 10000) + (m[2].to_i * 100) + m[3].to_i
        end
        @server_version
      end
# The version of the PostgreSQL server, used for determining capability.
The version of the PostgreSQL server, used for determining capability.
The version of the PostgreSQL server used for determining capability .
def server_version(server=nil)
        return @server_version if @server_version
        @server_version = synchronize(server) do |conn|
          (conn.server_version rescue nil) if conn.respond_to?(:server_version)
        end
        unless @server_version
          m = /PostgreSQL (\d+)\.(\d+)\.(\d+)/.match(get(:version[]))
          @server_version = (m[1].to_i * 10000) + (m[2].to_i * 100) + m[3].to_i
        end
        @server_version
      end
def server_version ( server = nil ) return @server_version if @server_version @server_version = synchronize ( server ) do | conn | ( conn . server_version rescue nil ) if conn . respond_to? ( :server_version ) end unless @server_version m = / PostgreSQL ( \d +) \. ( \d +) \. ( \d +) / . match ( get ( :version [ ] ) ) @server_version = ( m [ 1 ] . to_i * 10000 ) + ( m [ 2 ] . to_i * 100 ) + m [ 3 ] . to_i end @server_version end
The version of the PostgreSQL server, used for determining capability.
The version of the PostgreSQL server used for determining capability .
server