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.
- checksums.yaml +4 -4
- data/lib/pg_query/deparse.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0471664ed840825445cd85bd8a1fdba7e4d728d4a81e2f9a5e713e1cf98cdc5
|
4
|
+
data.tar.gz: c4251d0de88897feea1d7fb234fafd14c04c5c738c6835fd8574114babeb28b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7117b8e76f8d8d0d381e26614609d00f6bba98ecad96a392a670af197bf6bf33334e92d5b39215d10f6f43845589bb7b75056c280f3a81d67ab1aabb87bb4f6
|
7
|
+
data.tar.gz: 4ca16deaa77c5948ae8111d10d1fcf7324e4ec64c1a935d4b151c5b582eeca9ee5d46ceb89d5eae954ec58be73b716086a54f0d0bbf00e91b8eb0f06ee22d3ca
|
data/lib/pg_query/deparse.rb
CHANGED
@@ -809,7 +809,12 @@ class PgQuery
|
|
809
809
|
end
|
810
810
|
|
811
811
|
def deparse_columndef(node)
|
812
|
-
|
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.
|
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-
|
11
|
+
date: 2021-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|