-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #344 from kaneeldias/stage-1.2.1
Patch release for JDBC 1.2.1
- Loading branch information
Showing
9 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
[package] | ||
org = "ballerinax" | ||
name = "java.jdbc" | ||
version = "1.2.0" | ||
version = "1.2.1" | ||
authors = ["Ballerina"] | ||
keywords = ["database", "client", "network", "SQL", "RDBMS", "JDBC"] | ||
repository = "https://github.com/ballerina-platform/module-ballerinax-java.jdbc" | ||
license = ["Apache-2.0"] | ||
distribution = "slbeta6" | ||
|
||
[[platform.java11.dependency]] | ||
path = "../native/build/libs/java.jdbc-native-1.2.0.jar" | ||
path = "../native/build/libs/java.jdbc-native-1.2.1.jar" | ||
|
||
[[platform.java11.dependency]] | ||
path = "./lib/sql-native-1.2.0.jar" | ||
path = "./lib/sql-native-1.2.1.jar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
compiler-plugin-tests/src/test/resources/diagnostics/sample3/Ballerina.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[package] | ||
org = "jdbc_test" | ||
name = "sample3" | ||
version = "0.1.0" |
29 changes: 29 additions & 0 deletions
29
compiler-plugin-tests/src/test/resources/diagnostics/sample3/main.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// 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/java.jdbc; | ||
|
||
public function main() returns error? { | ||
|
||
int connectionNum = 5; | ||
int connectionNumInvalid = -5; | ||
|
||
jdbc:Client dbClient1 = check new("url", connectionPool = {maxOpenConnections: connectionNum}); | ||
check dbClient1.close(); | ||
|
||
jdbc:Client dbClient2 = check new("url", (), (), {}, {maxOpenConnections: connectionNumInvalid}); | ||
check dbClient2.close(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters