Skip to content

Commit 310dcd0

Browse files
committed
Update libpg_query to 17-6.0.0
1 parent 65d7ed4 commit 310dcd0

File tree

138 files changed

+49205
-21394
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+49205
-21394
lines changed

Token.java.patch

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
diff --git a/src/main/java/com/premiumminds/sonar/postgres/protobuf/Token.java b/src/main/java/com/premiumminds/sonar/postgres/protobuf/Token.java
2-
index 0748d8e..4fbf021 100644
2+
index 13968c6..8ffb3a2 100644
33
--- a/src/main/java/com/premiumminds/sonar/postgres/protobuf/Token.java
44
+++ b/src/main/java/com/premiumminds/sonar/postgres/protobuf/Token.java
5-
@@ -4941,7 +4941,7 @@ public enum Token
6-
return com.premiumminds.sonar.postgres.protobuf.PgQuery.getDescriptor().getEnumTypes().get(63);
5+
@@ -3347,7 +3347,7 @@ public enum Token
6+
/**
7+
* <code>JSON = 485;</code>
8+
*/
9+
- public static final int JSON_VALUE = 485;
10+
+ public static final int JSON_ENUM_VALUE = 485;
11+
/**
12+
* <code>JSON_ARRAY = 486;</code>
13+
*/
14+
@@ -5121,7 +5121,7 @@ public enum Token
15+
return com.premiumminds.sonar.postgres.protobuf.PgQuery.getDescriptor().getEnumTypes().get(70);
716
}
817

918
- private static final Token[] VALUES = values();
1019
+ private static final Token[] INTERNAL_VALUES = values();
1120

1221
public static Token valueOf(
1322
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
14-
@@ -4952,7 +4952,7 @@ public enum Token
23+
@@ -5132,7 +5132,7 @@ public enum Token
1524
if (desc.getIndex() == -1) {
1625
return UNRECOGNIZED;
1726
}

generate_libpg_query.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ LIBPG_QUERY_TEMP_DIR=$(mktemp --directory)
88

99
pushd $LIBPG_QUERY_TEMP_DIR
1010

11-
wget -q https://github.com/pganalyze/libpg_query/archive/refs/tags/16-5.1.0.zip
12-
unzip 16-5.1.0.zip
13-
SOURCES_DIR=libpg_query-16-5.1.0
11+
wget -q https://github.com/pganalyze/libpg_query/archive/refs/tags/17-6.0.0.zip
12+
unzip 17-6.0.0.zip
13+
SOURCES_DIR=libpg_query-17-6.0.0
1414

1515
echo "compile linux-x86-64"
1616
docker create \
@@ -64,7 +64,7 @@ docker cp crossbuild:/work/$SOURCES_DIR/libpg_query.dylib \
6464
docker rm crossbuild
6565

6666
echo "compile darwin-aarch64"
67-
docker create --name crossbuild --workdir /work/$SOURCES_DIR darwin-build-support bash -c 'patch -p1 < /work/darwin.patch; make CC=aarch64-apple-darwin22.2-cc -j build_shared'
67+
docker create --name crossbuild --workdir /work/$SOURCES_DIR darwin-build-support bash -c 'patch -p1 < /work/darwin.patch; make CC=aarch64-apple-darwin23.6-cc -j build_shared'
6868
docker cp $SOURCES_DIR crossbuild:/work/
6969
docker cp $PROJECT_DIR/darwin.patch crossbuild:/work/darwin.patch
7070
docker start -ai crossbuild

src/main/java/com/premiumminds/sonar/postgres/protobuf/A_Expr_Kind.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/premiumminds/sonar/postgres/protobuf/AggSplit.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/premiumminds/sonar/postgres/protobuf/AggStrategy.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/premiumminds/sonar/postgres/protobuf/AlterPublicationAction.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)