pg_query_pg_ddm 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pg_query/deparse.rb +6 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 781e131d7fea65049926aa0e186c0115bbd51f686a005c086f4809a7af000222
4
- data.tar.gz: 705765c1a62411c38c30598c49824db92bacaa127dfbeded9808c59f3073d210
3
+ metadata.gz: f0471664ed840825445cd85bd8a1fdba7e4d728d4a81e2f9a5e713e1cf98cdc5
4
+ data.tar.gz: c4251d0de88897feea1d7fb234fafd14c04c5c738c6835fd8574114babeb28b1
5
5
  SHA512:
6
- metadata.gz: a778f80a8cfc5019b189d51b1c559eac96474c77d4bbc75d86329efed34cdfcdc6dfba0392e948ce37c2a2cb11c5e07cc1ef6fa7360e5846c62e69d249c22b04
7
- data.tar.gz: 0f37b215dcc01d06d2052688e5a9791f19dcdce5c9bdeaad8af295d183253be7c723bc679cd2bc3f0e1a694bdf213e09fc60085786fc3655b1fe9d29e9afef0a
6
+ metadata.gz: a7117b8e76f8d8d0d381e26614609d00f6bba98ecad96a392a670af197bf6bf33334e92d5b39215d10f6f43845589bb7b75056c280f3a81d67ab1aabb87bb4f6
7
+ data.tar.gz: 4ca16deaa77c5948ae8111d10d1fcf7324e4ec64c1a935d4b151c5b582eeca9ee5d46ceb89d5eae954ec58be73b716086a54f0d0bbf00e91b8eb0f06ee22d3ca
@@ -809,7 +809,12 @@ class PgQuery
809
809
  end
810
810
 
811
811
  def deparse_columndef(node)
812
- output = [node['colname']]
812
+ colname = if node['colname'] =~ /[A-Z]/
813
+ deparse_identifier(node['colname'], escape_always: true)
814
+ else
815
+ node['colname']
816
+ end
817
+ output = [colname]
813
818
  output << deparse_item(node['typeName'])
814
819
  if node['raw_default']
815
820
  output << 'USING'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_query_pg_ddm
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '0.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehmet Emin KARAKAŞ
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-21 00:00:00.000000000 Z
11
+ date: 2021-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler