pg_query 4.2.2 → 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 +6 -0
- data/Rakefile +2 -2
- data/ext/pg_query/include/pg_config.h +2 -1
- data/ext/pg_query/postgres_deparse.c +8 -4
- data/lib/pg_query/version.rb +1 -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: 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,12 @@
|
|
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
|
+
|
8
14
|
## 4.2.2 2023-07-07
|
9
15
|
|
10
16
|
* Update to libpg_query 15-4.2.2
|
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'
|
@@ -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
|
@@ -2267,9 +2267,11 @@ static void deparseSelectStmt(StringInfo str, SelectStmt *stmt)
|
|
2267
2267
|
|
2268
2268
|
if (IsA(stmt->limitCount, A_Const) && castNode(A_Const, stmt->limitCount)->isnull)
|
2269
2269
|
appendStringInfoString(str, "ALL");
|
2270
|
-
else
|
2270
|
+
else if (stmt->limitOption == LIMIT_OPTION_WITH_TIES)
|
2271
2271
|
deparseCExpr(str, stmt->limitCount);
|
2272
|
-
|
2272
|
+
else
|
2273
|
+
deparseExpr(str, stmt->limitCount);
|
2274
|
+
|
2273
2275
|
appendStringInfoChar(str, ' ');
|
2274
2276
|
|
2275
2277
|
if (stmt->limitOption == LIMIT_OPTION_WITH_TIES)
|
@@ -4899,13 +4901,15 @@ static void deparseCreateFunctionStmt(StringInfo str, CreateFunctionStmt *create
|
|
4899
4901
|
/* RETURN or BEGIN ... END
|
4900
4902
|
*/
|
4901
4903
|
if (IsA(create_function_stmt->sql_body, ReturnStmt))
|
4904
|
+
{
|
4902
4905
|
deparseReturnStmt(str, castNode(ReturnStmt, create_function_stmt->sql_body));
|
4906
|
+
}
|
4903
4907
|
else
|
4904
4908
|
{
|
4905
4909
|
appendStringInfoString(str, "BEGIN ATOMIC ");
|
4906
|
-
if (linitial(create_function_stmt->sql_body) != NULL)
|
4910
|
+
if (IsA(create_function_stmt->sql_body, List), linitial((List *) create_function_stmt->sql_body) != NULL)
|
4907
4911
|
{
|
4908
|
-
List *body_stmt_list = castNode(List, linitial(create_function_stmt->sql_body));
|
4912
|
+
List *body_stmt_list = castNode(List, linitial((List *) create_function_stmt->sql_body));
|
4909
4913
|
foreach(lc, body_stmt_list)
|
4910
4914
|
{
|
4911
4915
|
if (IsA(lfirst(lc), ReturnStmt))
|
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: 4.2.
|
4
|
+
version: 4.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Fittl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|