Sha256: 89e0dd17c3e5c7b274157ff59d39e6f7cd40578acf7d852e81386102a1c49afa

Contents?: true

Size: 635 Bytes

Versions: 18

Compression:

Stored size: 635 Bytes

Contents

# pg 0.21 requires a file "pg/deprecated_constants" to warn about constant
# deprecations of PGconn, PGresult, and PGError. Since this is the latest
# version supported by Rails 4.2 Since this is also the latest version
# supported by ActiveRecord 4.2.* this means that with such a old version
# you would be stuck with this rather senseless warning.

# This file here replaces the original, in the hope that requiring
# "pg/deprecated_constants" would load this file and not the original -
# effectively suppressing that warning.

unless defined?(PGconn)
  PGconn   = PG::Connection
  PGresult = PG::Result
  PGError  = PG::Error
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
simple-sql-0.5.37 lib/pg/deprecated_constants.rb
simple-sql-0.5.36 lib/pg/deprecated_constants.rb
simple-sql-0.5.35 lib/pg/deprecated_constants.rb
simple-sql-0.5.34 lib/pg/deprecated_constants.rb
simple-sql-0.5.33 lib/pg/deprecated_constants.rb
simple-sql-0.5.32 lib/pg/deprecated_constants.rb
simple-sql-0.5.31 lib/pg/deprecated_constants.rb
simple-sql-0.5.30 lib/pg/deprecated_constants.rb
simple-sql-0.5.29 lib/pg/deprecated_constants.rb
simple-sql-0.5.28 lib/pg/deprecated_constants.rb
simple-sql-0.5.27 lib/pg/deprecated_constants.rb
simple-sql-0.5.26 lib/pg/deprecated_constants.rb
simple-sql-0.5.25 lib/pg/deprecated_constants.rb
simple-sql-0.5.24 lib/pg/deprecated_constants.rb
simple-sql-0.5.23 lib/pg/deprecated_constants.rb
simple-sql-0.5.22 lib/pg/deprecated_constants.rb
simple-sql-0.5.21 lib/pg/deprecated_constants.rb
simple-sql-0.5.20 lib/pg/deprecated_constants.rb