pg_query 4.2.1 → 4.2.2

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: 32a51d0f608ebfe0e27991db81924289d86c7f0b9a90ab56a321b9ef5c21794e
4
- data.tar.gz: 0d56fc7fd092c3406a40d102f420d637347d45f77203cc4de2f4613a111438dc
3
+ metadata.gz: ea8fb56217063eac1d411d1939edb4e0aa1319657a72d359ce09b76cc6c3e7cd
4
+ data.tar.gz: 783e06aa36da1192a14500ccdefcba25e179fff0178be18b8724eca51d23ebbf
5
5
  SHA512:
6
- metadata.gz: f1adefd8ebb6ab5595bf97f79ca027fb5e3c6cc351fbac310252a1a0f6d13c566c2a09b268ff5c173d0ab968ce7171f6b29dc2c071814b407883d77c315d50ae
7
- data.tar.gz: 824faa4086e30b42199491049a16c4e7287a9c5b6146aba89ef353b77cfe6a3452ae4f2f09169b5851ff3b266df71bd02a948141f2e4bd05e02425e09db5b6f1
6
+ metadata.gz: d4cc8dcdc572277b2c667f4b7df253a0ba123b3fbac1eb82be8ab3cacd419875393d6ca1d4a7cc74dde2d9f8d45c42e3e453f36a35622d67e3b57ebc95af248e
7
+ data.tar.gz: 020ec80cfc1e9f22a679db3298e8cb719cf52acd50a9692f76771c7039c258ebe9b0b5574742d974e82c8ce61a509387a4a89727807ce9cdd44ddddf62f0d225
data/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@
5
5
  * ...
6
6
 
7
7
 
8
+ ## 4.2.2 2023-07-07
9
+
10
+ * Update to libpg_query 15-4.2.2
11
+ - Deparser: Add support for multi-statement CREATE PROCEDURE definitions
12
+ - Deparser: Correctly quote identifier in ALTER TABLE ... ADD CONSTRAINT [x]
13
+ - Deparser: Add support for index fillfactor within CREATE TABLE, fix SHOW ALL
14
+ * Fix builds on FreeBSD ([#292](https://github.com/pganalyze/pg_query/pull/292))
15
+ - This was broken since 4.2.0, due to pg_query_ruby_freebsd.sym being removed by accident
16
+
17
+
8
18
  ## 4.2.1 2023-05-19
9
19
 
10
20
  * 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.1'.freeze
9
- LIB_PG_QUERY_SHA256SUM = '5828124517d8fd3091336fad6897e16ab49ec0b0b188f5859b3b928fc91608c2'.freeze
8
+ LIB_PG_QUERY_TAG = '15-4.2.2'.freeze
9
+ LIB_PG_QUERY_SHA256SUM = '03d6631b4a5ea9cc26cb2569e0303b9cce2bc1c6b6e1488f5ab9d63e6bd5346d'.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.{c,sym} #{extdir}/extconf.rb #{extbakdir}")
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.{c,sym} #{extbakdir}/extconf.rb #{extdir}")
88
+ system("cp -a #{extbakdir}/pg_query_ruby{.c,.sym,_freebsd.sym} #{extbakdir}/extconf.rb #{extdir}")
89
89
  end
@@ -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
- $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 -g"
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