pg_query 0.11.3 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/pg_query/deparse.rb +2 -2
- data/lib/pg_query/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bae030ac70d3ec0dc2d8c4f32e7bf7a3ec364320
|
4
|
+
data.tar.gz: bc2e93c78152050701bfa0a962e64ba877593aad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 509cbecec7aa6cd3533656cf260132a75cf1e83f1a9967ed49bf7831271fefb5a5223661d79891192f0435d72c45ac7ccf056970dd5e74ee3d2c7f5dc91ea8d2
|
7
|
+
data.tar.gz: 49021c28cafa93f84ff9a9366c510d358f685b710f44845541c3a347976c7313ba8f09bc69fbf20a8737346e9f41fddfae11213a489a3f8a52b69d760e434e6e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.11.4 2017-01-18
|
4
|
+
|
5
|
+
* Compatibility with Ruby 2.4 [#59](https://github.com/lfittl/pg_query/pull/59) [@merqlove](https://github.com/merqlove)
|
6
|
+
* Deparse varchar and numeric casts without arguments [#61](https://github.com/lfittl/pg_query/pull/61) [@jcsjcs](https://github.com/jcsjcs)
|
7
|
+
|
8
|
+
|
3
9
|
## 0.11.3 2016-12-06
|
4
10
|
|
5
11
|
* Update to newest libpg_query version (9.5-1.4.2)
|
data/lib/pg_query/deparse.rb
CHANGED
@@ -817,10 +817,10 @@ class PgQuery
|
|
817
817
|
# char(2) or char(9)
|
818
818
|
"char(#{arguments})"
|
819
819
|
when 'varchar'
|
820
|
-
"varchar(#{arguments})"
|
820
|
+
arguments.nil? ? 'varchar' : "varchar(#{arguments})"
|
821
821
|
when 'numeric'
|
822
822
|
# numeric(3, 5)
|
823
|
-
"numeric(#{arguments})"
|
823
|
+
arguments.nil? ? 'numeric' : "numeric(#{arguments})"
|
824
824
|
when 'bool'
|
825
825
|
'boolean'
|
826
826
|
when 'int2'
|
data/lib/pg_query/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_query
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Fittl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -70,16 +70,22 @@ dependencies:
|
|
70
70
|
name: json
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '1.8'
|
76
|
+
- - "<"
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '3'
|
76
79
|
type: :runtime
|
77
80
|
prerelease: false
|
78
81
|
version_requirements: !ruby/object:Gem::Requirement
|
79
82
|
requirements:
|
80
|
-
- - "
|
83
|
+
- - ">="
|
81
84
|
- !ruby/object:Gem::Version
|
82
85
|
version: '1.8'
|
86
|
+
- - "<"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '3'
|
83
89
|
description: Parses SQL queries using a copy of the PostgreSQL server query parser
|
84
90
|
email: lukas@fittl.com
|
85
91
|
executables: []
|