pg_query 4.2.1 → 4.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Rakefile +4 -4
- data/ext/pg_query/extconf.rb +3 -1
- data/ext/pg_query/include/pg_config.h +2 -1
- data/ext/pg_query/pg_query_deparse.c +1 -10635
- data/ext/pg_query/pg_query_ruby_freebsd.sym +2 -0
- data/ext/pg_query/postgres_deparse.c +10669 -0
- data/ext/pg_query/postgres_deparse.h +9 -0
- data/lib/pg_query/version.rb +1 -1
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ef3b405c38280a7d7fd951b9b2d181d4b54b7c650817227a8fa5e4e0e9a38d8
|
4
|
+
data.tar.gz: 4d76a4a3d25b847c2996613c761a5529f17e2e03d5f17257c39d02d8291e48b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c5790923fd334079f84eb70154b330ba8dd1c61b8a54acc4248dcf7327a1137d32a29127c9aa8d6a3e87b3d5bfb47169f628fd54afb94c94c167658d37a2083
|
7
|
+
data.tar.gz: 6c5954ddfd3c31dfeabb0747c505ed06094a892ac75e3de052aabb91f9edff3726d4c1f0d6da9324467d8ecf71434b92021f35cd6bb1e2ac1121684daafedf08
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,22 @@
|
|
5
5
|
* ...
|
6
6
|
|
7
7
|
|
8
|
+
## 4.2.3 2023-08-04
|
9
|
+
|
10
|
+
* Update to libpg_query 15-4.2.3
|
11
|
+
- Fix builds when compiling with `glibc >= 2.38` [#203](https://github.com/pganalyze/libpg_query/pull/203)
|
12
|
+
- Deparser: Add support for COALESCE and other expressions in LIMIT clause [#199](https://github.com/pganalyze/libpg_query/pull/199)
|
13
|
+
|
14
|
+
## 4.2.2 2023-07-07
|
15
|
+
|
16
|
+
* Update to libpg_query 15-4.2.2
|
17
|
+
- Deparser: Add support for multi-statement CREATE PROCEDURE definitions
|
18
|
+
- Deparser: Correctly quote identifier in ALTER TABLE ... ADD CONSTRAINT [x]
|
19
|
+
- Deparser: Add support for index fillfactor within CREATE TABLE, fix SHOW ALL
|
20
|
+
* Fix builds on FreeBSD ([#292](https://github.com/pganalyze/pg_query/pull/292))
|
21
|
+
- This was broken since 4.2.0, due to pg_query_ruby_freebsd.sym being removed by accident
|
22
|
+
|
23
|
+
|
8
24
|
## 4.2.1 2023-05-19
|
9
25
|
|
10
26
|
* Parse: Fix `ALTER INDEX my_index_name` to return `tables=[]` ([#285](https://github.com/pganalyze/pg_query/pull/285))
|
data/Rakefile
CHANGED
@@ -5,8 +5,8 @@ require 'rspec/core/rake_task'
|
|
5
5
|
require 'rubocop/rake_task'
|
6
6
|
require 'open-uri'
|
7
7
|
|
8
|
-
LIB_PG_QUERY_TAG = '15-4.2.
|
9
|
-
LIB_PG_QUERY_SHA256SUM = '
|
8
|
+
LIB_PG_QUERY_TAG = '15-4.2.3'.freeze
|
9
|
+
LIB_PG_QUERY_SHA256SUM = '8b820d63442b1677ce4f0df2a95b3fafdbc520a82901def81217559ec4df9e6b'.freeze
|
10
10
|
|
11
11
|
Rake::ExtensionTask.new 'pg_query' do |ext|
|
12
12
|
ext.lib_dir = 'lib/pg_query'
|
@@ -55,7 +55,7 @@ task :update_source do
|
|
55
55
|
# Backup important files from ext dir
|
56
56
|
system("rm -fr #{extbakdir}")
|
57
57
|
system("mkdir -p #{extbakdir}")
|
58
|
-
system("cp -a #{extdir}/pg_query_ruby.
|
58
|
+
system("cp -a #{extdir}/pg_query_ruby{.c,.sym,_freebsd.sym} #{extdir}/extconf.rb #{extbakdir}")
|
59
59
|
|
60
60
|
FileUtils.rm_rf extdir
|
61
61
|
|
@@ -85,5 +85,5 @@ task :update_source do
|
|
85
85
|
# Other support files
|
86
86
|
system("cp -a #{libdir}/testdata/* #{testfilesdir}")
|
87
87
|
# Copy back the custom ext files
|
88
|
-
system("cp -a #{extbakdir}/pg_query_ruby.
|
88
|
+
system("cp -a #{extbakdir}/pg_query_ruby{.c,.sym,_freebsd.sym} #{extbakdir}/extconf.rb #{extdir}")
|
89
89
|
end
|
data/ext/pg_query/extconf.rb
CHANGED
@@ -7,7 +7,9 @@ require 'pathname'
|
|
7
7
|
|
8
8
|
$objs = Dir.glob(File.join(__dir__, '*.c')).map { |f| Pathname.new(f).sub_ext('.o').to_s }
|
9
9
|
|
10
|
-
|
10
|
+
# -Wno-deprecated-non-prototype avoids warnings on Clang 15.0+, this can be removed in Postgres 16:
|
11
|
+
# https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=1c27d16e6e5c1f463bbe1e9ece88dda811235165
|
12
|
+
$CFLAGS << " -fvisibility=hidden -O3 -Wall -fno-strict-aliasing -fwrapv -fstack-protector -Wno-unused-function -Wno-unused-variable -Wno-clobbered -Wno-sign-compare -Wno-discarded-qualifiers -Wno-deprecated-non-prototype -Wno-unknown-warning-option -g"
|
11
13
|
|
12
14
|
$INCFLAGS = "-I#{File.join(__dir__, 'include')} " + $INCFLAGS
|
13
15
|
|
@@ -1032,6 +1032,7 @@
|
|
1032
1032
|
#undef HAVE__GET_CPUID
|
1033
1033
|
#undef USE_ARMV8_CRC32C
|
1034
1034
|
#undef USE_SSE42_CRC32C_WITH_RUNTIME_CHECK
|
1035
|
-
#
|
1035
|
+
#include <stdlib.h>
|
1036
|
+
#if defined(__FreeBSD__) || defined(__NetBSD__) || (defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 38) || __GLIBC__ > 2))
|
1036
1037
|
#define HAVE_STRCHRNUL
|
1037
1038
|
#endif
|