pg_conn 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '006583d902e2254d449d5275be8e91412f2d272ae6ce8de927a1f0bec87e1f05'
4
- data.tar.gz: 4a983af740d9032ff6856fffea989510d3c00452dea075312b1c2c9c9857eaef
3
+ metadata.gz: 5d38593bbd3985871d0047ac1c40a093136f34555b051b8c2bb454549cc6634a
4
+ data.tar.gz: f72a7ab003ee1450eb7aa654bb7b2ba6234d10f25aeefa90c37df0d9d7b189cd
5
5
  SHA512:
6
- metadata.gz: c1ba88b850bb8abd1d0073b4be090033d1fbaabd51177f62476c511ab8dbf73867e657bd1daf8952d784253adb2d168109dba4dcc47105c4038bba03025cb533
7
- data.tar.gz: 8402eb677b0c1b24dbea124c48862e25dd39430585a0b44969383c78548c256267ca2c06d6755ea77e6e591b4209e74c5eb5e99f97af864c474aa17afcd1f37c
6
+ metadata.gz: 2ec6bbd626ab5bfff53639ad774102c5d1ad273b24cb7ad9a3d6c3c2f8852f53c095d3d83451eb6c343ac71b43da7162153bcbd8e9da5a681cb689969786ae6a
7
+ data.tar.gz: bfa053c3720fc5ffbd52d2d6c0cc763675a21322810a17f3cf95abafef868671eefa6dbb15347b847d2892e1884ee210b19c1827310f17174c402e3a2fa59d81
@@ -1,3 +1,3 @@
1
1
  module PgConn
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
data/lib/pg_conn.rb CHANGED
@@ -226,8 +226,11 @@ module PgConn
226
226
  end
227
227
  end
228
228
 
229
- # Quote value as an identifier. Value should be a non-nil string
230
- def quote_identifier(s) = @pg_connection.escape_identifier(s)
229
+ # Quote value as an identifier. Value should be a non-nil string or a symbol
230
+ def quote_identifier(s)
231
+ s = s.to_s if s.is_a?(Symbol)
232
+ String@pg_connection.escape_identifier(s)
233
+ end
231
234
 
232
235
  # Quote the value as a string. Emit 'null' if value is nil
233
236
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_conn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen