From 06a832738672936cac49f798f6d4cb4ca4359a07 Mon Sep 17 00:00:00 2001 From: Niveathika Date: Fri, 4 Nov 2022 19:53:34 +0530 Subject: [PATCH 1/4] Remove SQL_901 diagnostic hint --- changelog.md | 5 ++ .../compiler/CompilerPluginTest.java | 55 ------------ .../diagnostics/sample1/Ballerina.toml | 4 - .../resources/diagnostics/sample1/main.bal | 29 ------- .../diagnostics/sample5/Ballerina.toml | 4 - .../resources/diagnostics/sample5/main.bal | 24 ----- .../compiler/PostgreSQLCodeAnalyzer.java | 2 - .../compiler/PostgreSQLDiagnosticsCode.java | 10 +-- .../compiler/analyzer/MethodAnalyzer.java | 42 +-------- .../analyzer/RemoteMethodAnalyzer.java | 87 ------------------- 10 files changed, 10 insertions(+), 252 deletions(-) delete mode 100644 compiler-plugin-tests/src/test/resources/diagnostics/sample1/Ballerina.toml delete mode 100644 compiler-plugin-tests/src/test/resources/diagnostics/sample1/main.bal delete mode 100644 compiler-plugin-tests/src/test/resources/diagnostics/sample5/Ballerina.toml delete mode 100644 compiler-plugin-tests/src/test/resources/diagnostics/sample5/main.bal delete mode 100644 compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/analyzer/RemoteMethodAnalyzer.java diff --git a/changelog.md b/changelog.md index 52f06c1c..10299feb 100644 --- a/changelog.md +++ b/changelog.md @@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +### Changed +- [Remove SQL_901 diagnostic hint](https://github.com/ballerina-platform/ballerina-standard-library/issues/3609) + +## [1.6.0] + ### Changed - [Updated API Docs](https://github.com/ballerina-platform/ballerina-standard-library/issues/3463) diff --git a/compiler-plugin-tests/src/test/java/io/ballerina/stdlib/postgresql/compiler/CompilerPluginTest.java b/compiler-plugin-tests/src/test/java/io/ballerina/stdlib/postgresql/compiler/CompilerPluginTest.java index 101417c6..28f80ced 100644 --- a/compiler-plugin-tests/src/test/java/io/ballerina/stdlib/postgresql/compiler/CompilerPluginTest.java +++ b/compiler-plugin-tests/src/test/java/io/ballerina/stdlib/postgresql/compiler/CompilerPluginTest.java @@ -42,7 +42,6 @@ import static io.ballerina.stdlib.postgresql.compiler.PostgreSQLDiagnosticsCode.POSTGRESQL_202; import static io.ballerina.stdlib.postgresql.compiler.PostgreSQLDiagnosticsCode.POSTGRESQL_203; import static io.ballerina.stdlib.postgresql.compiler.PostgreSQLDiagnosticsCode.POSTGRESQL_204; -import static io.ballerina.stdlib.postgresql.compiler.PostgreSQLDiagnosticsCode.POSTGRESQL_903; import static io.ballerina.stdlib.postgresql.compiler.PostgreSQLDiagnosticsCode.SQL_101; /** @@ -66,34 +65,6 @@ private Package loadPackage(String path) { return project.currentPackage(); } - @Test - public void testFunctionHints() { - Package currentPackage = loadPackage("sample1"); - PackageCompilation compilation = currentPackage.getCompilation(); - DiagnosticResult diagnosticResult = compilation.diagnosticResult(); - long availableErrors = diagnosticResult.diagnostics().stream() - .filter(r -> r.diagnosticInfo().severity().equals(DiagnosticSeverity.ERROR)).count(); - Assert.assertEquals(availableErrors, 3); - - List diagnosticHints = diagnosticResult.diagnostics().stream() - .filter(r -> r.diagnosticInfo().severity().equals(DiagnosticSeverity.HINT)) - .collect(Collectors.toList()); - long availableHints = diagnosticHints.size(); - Assert.assertEquals(availableHints, 3); - - DiagnosticInfo hint1 = diagnosticHints.get(0).diagnosticInfo(); - Assert.assertEquals(hint1.code(), PostgreSQLDiagnosticsCode.POSTGRESQL_901.getCode()); - Assert.assertEquals(hint1.messageFormat(), PostgreSQLDiagnosticsCode.POSTGRESQL_901.getMessage()); - - DiagnosticInfo hint2 = diagnosticHints.get(1).diagnosticInfo(); - Assert.assertEquals(hint2.code(), PostgreSQLDiagnosticsCode.POSTGRESQL_902.getCode()); - Assert.assertEquals(hint2.messageFormat(), PostgreSQLDiagnosticsCode.POSTGRESQL_902.getMessage()); - - DiagnosticInfo hint3 = diagnosticHints.get(2).diagnosticInfo(); - Assert.assertEquals(hint3.code(), PostgreSQLDiagnosticsCode.POSTGRESQL_901.getCode()); - Assert.assertEquals(hint3.messageFormat(), PostgreSQLDiagnosticsCode.POSTGRESQL_901.getMessage()); - } - @Test public void testSQLConnectionPoolFieldsInNewExpression() { Package currentPackage = loadPackage("sample2"); @@ -179,32 +150,6 @@ public void testOutParameterValidations() { Assert.assertEquals(diagnostic.messageFormat(), POSTGRESQL_204.getMessage()); } - @Test - public void testOutParameterHint() { - Package currentPackage = loadPackage("sample5"); - PackageCompilation compilation = currentPackage.getCompilation(); - DiagnosticResult diagnosticResult = compilation.diagnosticResult(); - List errorDiagnosticsList = diagnosticResult.diagnostics().stream() - .filter(r -> r.diagnosticInfo().severity().equals(DiagnosticSeverity.ERROR)) - .collect(Collectors.toList()); - long availableErrors = errorDiagnosticsList.size(); - - Assert.assertEquals(availableErrors, 1); - - List hintDiagnosticsList = diagnosticResult.diagnostics().stream() - .filter(r -> r.diagnosticInfo().severity().equals(DiagnosticSeverity.HINT)) - .collect(Collectors.toList()); - long availableHints = hintDiagnosticsList.size(); - - Assert.assertEquals(availableHints, 1); - - hintDiagnosticsList.forEach(diagnostic -> { - Assert.assertEquals(diagnostic.diagnosticInfo().code(), POSTGRESQL_903.getCode()); - Assert.assertEquals(diagnostic.diagnosticInfo().messageFormat(), POSTGRESQL_903.getMessage()); - }); - - } - @Test public void testOptionsWithVariables() { Package currentPackage = loadPackage("sample6"); diff --git a/compiler-plugin-tests/src/test/resources/diagnostics/sample1/Ballerina.toml b/compiler-plugin-tests/src/test/resources/diagnostics/sample1/Ballerina.toml deleted file mode 100644 index 9b0f53e7..00000000 --- a/compiler-plugin-tests/src/test/resources/diagnostics/sample1/Ballerina.toml +++ /dev/null @@ -1,4 +0,0 @@ -[package] -org = "postgresql_test" -name = "sample1" -version = "0.1.0" diff --git a/compiler-plugin-tests/src/test/resources/diagnostics/sample1/main.bal b/compiler-plugin-tests/src/test/resources/diagnostics/sample1/main.bal deleted file mode 100644 index ae365510..00000000 --- a/compiler-plugin-tests/src/test/resources/diagnostics/sample1/main.bal +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. -// -// WSO2 Inc. licenses this file to you under the Apache License, -// Version 2.0 (the "License"); you may not use this file except -// in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -import ballerinax/postgresql; - -public function main() returns error? { - postgresql:Client dbClient = check new(); - _ = check dbClient->query(``); - _ = check dbClient->queryRow(``); - check invokeQuery(dbClient); - check dbClient.close(); -} - -function invokeQuery(postgresql:Client dbClient) returns error? { - _ = check dbClient->query(``); -} diff --git a/compiler-plugin-tests/src/test/resources/diagnostics/sample5/Ballerina.toml b/compiler-plugin-tests/src/test/resources/diagnostics/sample5/Ballerina.toml deleted file mode 100644 index 68544cab..00000000 --- a/compiler-plugin-tests/src/test/resources/diagnostics/sample5/Ballerina.toml +++ /dev/null @@ -1,4 +0,0 @@ -[package] -org = "postgresql_test" -name = "sample5" -version = "0.1.0" diff --git a/compiler-plugin-tests/src/test/resources/diagnostics/sample5/main.bal b/compiler-plugin-tests/src/test/resources/diagnostics/sample5/main.bal deleted file mode 100644 index 27c4ca6c..00000000 --- a/compiler-plugin-tests/src/test/resources/diagnostics/sample5/main.bal +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. -// -// WSO2 Inc. licenses this file to you under the Apache License, -// Version 2.0 (the "License"); you may not use this file except -// in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -import ballerinax/postgresql; - -public function main() returns error? { - postgresql:CircleOutParameter circleOut = new(); - string value1 = check circleOut.get(); - string value2 = check circleOut.get(string); - check circleOut.get(); -} diff --git a/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/PostgreSQLCodeAnalyzer.java b/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/PostgreSQLCodeAnalyzer.java index 37bfed53..6b755aec 100644 --- a/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/PostgreSQLCodeAnalyzer.java +++ b/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/PostgreSQLCodeAnalyzer.java @@ -24,7 +24,6 @@ import io.ballerina.stdlib.postgresql.compiler.analyzer.InitializerParamAnalyzer; import io.ballerina.stdlib.postgresql.compiler.analyzer.MethodAnalyzer; import io.ballerina.stdlib.postgresql.compiler.analyzer.RecordAnalyzer; -import io.ballerina.stdlib.postgresql.compiler.analyzer.RemoteMethodAnalyzer; import java.util.List; @@ -35,7 +34,6 @@ public class PostgreSQLCodeAnalyzer extends CodeAnalyzer { @Override public void init(CodeAnalysisContext ctx) { - ctx.addSyntaxNodeAnalysisTask(new RemoteMethodAnalyzer(), SyntaxKind.REMOTE_METHOD_CALL_ACTION); ctx.addSyntaxNodeAnalysisTask(new InitializerParamAnalyzer(), List.of(SyntaxKind.IMPLICIT_NEW_EXPRESSION, SyntaxKind.EXPLICIT_NEW_EXPRESSION)); ctx.addSyntaxNodeAnalysisTask(new RecordAnalyzer(), diff --git a/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/PostgreSQLDiagnosticsCode.java b/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/PostgreSQLDiagnosticsCode.java index 54edbac7..27a66f70 100644 --- a/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/PostgreSQLDiagnosticsCode.java +++ b/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/PostgreSQLDiagnosticsCode.java @@ -20,7 +20,6 @@ import io.ballerina.tools.diagnostics.DiagnosticSeverity; import static io.ballerina.tools.diagnostics.DiagnosticSeverity.ERROR; -import static io.ballerina.tools.diagnostics.DiagnosticSeverity.HINT; /** * Enum class to hold JDBC module diagnostic codes. @@ -40,14 +39,7 @@ public enum PostgreSQLDiagnosticsCode { POSTGRESQL_201("POSTGRESQL_201", "invalid value: expected value is string", ERROR), POSTGRESQL_202("POSTGRESQL_202", "invalid value: expected value is either record or string", ERROR), POSTGRESQL_203("POSTGRESQL_203", "invalid value: expected value is either json or string", ERROR), - POSTGRESQL_204("POSTGRESQL_204", "invalid value: expected value is either xml or string", ERROR), - - POSTGRESQL_901("POSTGRESQL_901", - "parameter 'rowType' should be explicitly passed when the return data is ignored", HINT), - POSTGRESQL_902("POSTGRESQL_902", - "parameter 'returnType' should be explicitly passed when the return data is ignored", HINT), - POSTGRESQL_903("POSTGRESQL_903", - "parameter 'typeDesc' should be explicitly passed when the return data is ignored", HINT); + POSTGRESQL_204("POSTGRESQL_204", "invalid value: expected value is either xml or string", ERROR); private final String code; diff --git a/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/analyzer/MethodAnalyzer.java b/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/analyzer/MethodAnalyzer.java index 5b41f326..040d94e6 100644 --- a/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/analyzer/MethodAnalyzer.java +++ b/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/analyzer/MethodAnalyzer.java @@ -39,10 +39,6 @@ import java.util.List; import java.util.Optional; -import static io.ballerina.stdlib.postgresql.compiler.PostgreSQLDiagnosticsCode.POSTGRESQL_903; -import static org.ballerinalang.util.diagnostic.DiagnosticErrorCode.CANNOT_INFER_TYPE_FOR_PARAM; -import static org.ballerinalang.util.diagnostic.DiagnosticErrorCode.INCOMPATIBLE_TYPE_FOR_INFERRED_TYPEDESC_VALUE; - /** * Code Analyser for OutParameter get method type validations. */ @@ -51,15 +47,10 @@ public class MethodAnalyzer implements AnalysisTask { public void perform(SyntaxNodeAnalysisContext ctx) { MethodCallExpressionNode node = (MethodCallExpressionNode) ctx.node(); List diagnostics = ctx.semanticModel().diagnostics(); - if (!diagnostics.isEmpty()) { - diagnostics.stream() - .filter(diagnostic -> diagnostic.diagnosticInfo().severity() == DiagnosticSeverity.ERROR) - .filter(diagnostic -> - diagnostic.diagnosticInfo().code().equals(CANNOT_INFER_TYPE_FOR_PARAM.diagnosticId()) || - diagnostic.diagnosticInfo().code().equals( - INCOMPATIBLE_TYPE_FOR_INFERRED_TYPEDESC_VALUE.diagnosticId())) - .filter(diagnostic -> diagnostic.location().lineRange().equals(node.location().lineRange())) - .forEach(diagnostic -> addHint(ctx, node)); + for (Diagnostic diagnostic : diagnostics) { + if (diagnostic.diagnosticInfo().severity() == DiagnosticSeverity.ERROR) { + return; + } } // Get the object type to validate arguments @@ -113,29 +104,4 @@ public void perform(SyntaxNodeAnalysisContext ctx) { node.arguments().get(0).location())); } } - - - private void addHint(SyntaxNodeAnalysisContext ctx, MethodCallExpressionNode node) { - if (!(Utils.isPostgreSQLObject(ctx, node.expression(), Constants.OUT_PARAMETER_POSTFIX))) { - return; - } - if (isGetMethod(ctx, node)) { - return; - } - ctx.reportDiagnostic(DiagnosticFactory.createDiagnostic( - new DiagnosticInfo(POSTGRESQL_903.getCode(), POSTGRESQL_903.getMessage(), POSTGRESQL_903.getSeverity()), - node.location())); - } - - private boolean isGetMethod(SyntaxNodeAnalysisContext ctx, MethodCallExpressionNode node) { - Optional methodSymbol = ctx.semanticModel().symbol(node.methodName()); - if (methodSymbol.isEmpty()) { - return true; - } - Optional methodName = methodSymbol.get().getName(); - if (methodName.isEmpty()) { - return true; - } - return !methodName.get().equals(Constants.OutParameter.METHOD_NAME); - } } diff --git a/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/analyzer/RemoteMethodAnalyzer.java b/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/analyzer/RemoteMethodAnalyzer.java deleted file mode 100644 index 2acdd61f..00000000 --- a/compiler-plugin/src/main/java/io/ballerina/stdlib/postgresql/compiler/analyzer/RemoteMethodAnalyzer.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * WSO2 Inc. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package io.ballerina.stdlib.postgresql.compiler.analyzer; - -import io.ballerina.compiler.api.symbols.Symbol; -import io.ballerina.compiler.syntax.tree.RemoteMethodCallActionNode; -import io.ballerina.projects.plugins.AnalysisTask; -import io.ballerina.projects.plugins.SyntaxNodeAnalysisContext; -import io.ballerina.stdlib.postgresql.compiler.Constants; -import io.ballerina.stdlib.postgresql.compiler.Utils; -import io.ballerina.tools.diagnostics.Diagnostic; -import io.ballerina.tools.diagnostics.DiagnosticFactory; -import io.ballerina.tools.diagnostics.DiagnosticInfo; -import io.ballerina.tools.diagnostics.DiagnosticSeverity; -import org.ballerinalang.util.diagnostic.DiagnosticErrorCode; - -import java.util.List; -import java.util.Optional; - -import static io.ballerina.stdlib.postgresql.compiler.PostgreSQLDiagnosticsCode.POSTGRESQL_901; -import static io.ballerina.stdlib.postgresql.compiler.PostgreSQLDiagnosticsCode.POSTGRESQL_902; -import static org.ballerinalang.util.diagnostic.DiagnosticErrorCode.CANNOT_INFER_TYPE_FOR_PARAM; - -/** - * PostgreSQL Client remote call analyzer. - */ -public class RemoteMethodAnalyzer implements AnalysisTask { - - @Override - public void perform(SyntaxNodeAnalysisContext ctx) { - RemoteMethodCallActionNode node = (RemoteMethodCallActionNode) ctx.node(); - List diagnostics = ctx.semanticModel().diagnostics(); - diagnostics.stream() - .filter(diagnostic -> diagnostic.diagnosticInfo().severity() == DiagnosticSeverity.ERROR) - .filter(diagnostic -> - diagnostic.diagnosticInfo().code().equals(CANNOT_INFER_TYPE_FOR_PARAM.diagnosticId()) || - diagnostic.diagnosticInfo().code().equals( - DiagnosticErrorCode.INCOMPATIBLE_TYPE_FOR_INFERRED_TYPEDESC_VALUE.diagnosticId())) - .filter(diagnostic -> diagnostic.location().lineRange().equals(node.location().lineRange())) - .forEach(diagnostic -> addHint(ctx, node)); - } - - private void addHint(SyntaxNodeAnalysisContext ctx, RemoteMethodCallActionNode node) { - if (!(Utils.isPostgreSQLObject(ctx, node.expression(), Constants.Client.NAME))) { - return; - } - - Optional methodSymbol = ctx.semanticModel().symbol(node.methodName()); - if (methodSymbol.isEmpty()) { - return; - } - Optional methodName = methodSymbol.get().getName(); - if (methodName.isEmpty()) { - return; - } - - switch (methodName.get()) { - case Constants.Client.QUERY: - ctx.reportDiagnostic(DiagnosticFactory.createDiagnostic( - new DiagnosticInfo(POSTGRESQL_901.getCode(), POSTGRESQL_901.getMessage(), - POSTGRESQL_901.getSeverity()), node.location())); - break; - case Constants.Client.QUERY_ROW: - ctx.reportDiagnostic(DiagnosticFactory.createDiagnostic( - new DiagnosticInfo(POSTGRESQL_902.getCode(), POSTGRESQL_902.getMessage(), - POSTGRESQL_902.getSeverity()), node.location())); - break; - default: - return; - } - } -} From eff7e8200670119b81858704339edfb1f817a69d Mon Sep 17 00:00:00 2001 From: Niveathika Date: Fri, 4 Nov 2022 20:13:17 +0530 Subject: [PATCH 2/4] Migrate to Ballerina Update 4 --- build-config/resources/Ballerina.toml | 2 +- gradle.properties | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build-config/resources/Ballerina.toml b/build-config/resources/Ballerina.toml index 2954a8c8..78900d0a 100644 --- a/build-config/resources/Ballerina.toml +++ b/build-config/resources/Ballerina.toml @@ -7,7 +7,7 @@ keywords = ["database", "client", "network", "SQL", "RDBMS", "PostgreSQL"] repository = "https://github.com/ballerina-platform/module-ballerinax-postgresql" icon = "icon.png" license = ["Apache-2.0"] -distribution = "2201.3.0" +distribution = "2201.4.0" [[platform.java11.dependency]] groupId = "io.ballerina.stdlib" diff --git a/gradle.properties b/gradle.properties index 3ad68fe5..aeef7471 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group=io.ballerina.stdlib -version=1.6.0-SNAPSHOT +version=1.7.0-SNAPSHOT puppycrawlCheckstyleVersion=8.18 postgreSQLDriverVersion=42.4.1 @@ -11,9 +11,9 @@ researchgateReleaseVersion=2.8.0 testngVersion=7.4.0 ballerinaGradlePluginVersion=0.15.0 -ballerinaLangVersion=2201.3.0-rc1 +ballerinaLangVersion=2201.4.0-20221104-003000-4b73c40e -stdlibSqlVersion=1.6.0-20221024-211900-c028f98 +stdlibSqlVersion=1.7.0-20221104-172000-addd057 # Direct Dependencies # Level 01 stdlibIoVersion=1.3.1-20221013-104400-2228262 From 524540cf5803ab50a2b09f7d5daaf62d6c295b5d Mon Sep 17 00:00:00 2001 From: Niveathika Date: Fri, 4 Nov 2022 20:16:18 +0530 Subject: [PATCH 3/4] Add branch to PR check --- .github/workflows/pull-request.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 252519eb..034bc9fb 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -5,6 +5,7 @@ on: branches: - main - 2201.[0-9]+.x + - update4 jobs: ubuntu-build: From 8260b5a80068833cf5aa4c97932bdc1a8ccf676f Mon Sep 17 00:00:00 2001 From: Niveathika Date: Fri, 4 Nov 2022 20:36:42 +0530 Subject: [PATCH 4/4] [Automated] Update the native jar versions --- ballerina/Ballerina.toml | 12 ++++++------ ballerina/CompilerPlugin.toml | 2 +- ballerina/Dependencies.toml | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ballerina/Ballerina.toml b/ballerina/Ballerina.toml index a14d02ef..5c5f4b5c 100644 --- a/ballerina/Ballerina.toml +++ b/ballerina/Ballerina.toml @@ -1,25 +1,25 @@ [package] org = "ballerinax" name = "postgresql" -version = "1.6.0" +version = "1.7.0" authors = ["Ballerina"] keywords = ["database", "client", "network", "SQL", "RDBMS", "PostgreSQL"] repository = "https://github.com/ballerina-platform/module-ballerinax-postgresql" icon = "icon.png" license = ["Apache-2.0"] -distribution = "2201.3.0" +distribution = "2201.4.0" [[platform.java11.dependency]] groupId = "io.ballerina.stdlib" artifactId = "postgresql-native" -version = "1.6.0" -path = "../native/build/libs/postgresql-native-1.6.0-SNAPSHOT.jar" +version = "1.7.0" +path = "../native/build/libs/postgresql-native-1.7.0-SNAPSHOT.jar" [[platform.java11.dependency]] groupId = "io.ballerina.stdlib" artifactId = "sql-native" -version = "1.6.0" -path = "./lib/sql-native-1.6.0-20221014-221200-0061889.jar" +version = "1.7.0" +path = "./lib/sql-native-1.7.0-20221104-172000-addd057.jar" [[platform.java11.dependency]] path = "./lib/postgresql-42.4.1.jar" diff --git a/ballerina/CompilerPlugin.toml b/ballerina/CompilerPlugin.toml index 09e1ea39..0388420a 100644 --- a/ballerina/CompilerPlugin.toml +++ b/ballerina/CompilerPlugin.toml @@ -3,4 +3,4 @@ id = "postgresql-compiler-plugin" class = "io.ballerina.stdlib.postgresql.compiler.PostgreSQLCompilerPlugin" [[dependency]] -path = "../compiler-plugin/build/libs/postgresql-compiler-plugin-1.6.0-SNAPSHOT.jar" +path = "../compiler-plugin/build/libs/postgresql-compiler-plugin-1.7.0-SNAPSHOT.jar" diff --git a/ballerina/Dependencies.toml b/ballerina/Dependencies.toml index 519b1e5e..25e4d809 100644 --- a/ballerina/Dependencies.toml +++ b/ballerina/Dependencies.toml @@ -146,7 +146,7 @@ dependencies = [ [[package]] org = "ballerina" name = "sql" -version = "1.6.0" +version = "1.7.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -183,7 +183,7 @@ modules = [ [[package]] org = "ballerinax" name = "postgresql" -version = "1.6.0" +version = "1.7.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "file"},