Skip to content

Commit

Permalink
Merge pull request #703 from daneshk/master
Browse files Browse the repository at this point in the history
Update the sql version to the next minor
  • Loading branch information
daneshk authored Feb 25, 2024
2 parents 9f25765 + 327451d commit 0cf4e3e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
8 changes: 4 additions & 4 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
org = "ballerina"
name = "sql"
version = "1.11.2"
version = "1.12.0"
authors = ["Ballerina"]
keywords = ["database", "client", "network", "SQL", "RDBMS"]
repository = "https://github.com/ballerina-platform/module-ballerina-sql"
Expand All @@ -15,11 +15,11 @@ graalvmCompatible = true
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "sql-native"
version = "1.11.2"
path = "../native/build/libs/sql-native-1.11.2-SNAPSHOT.jar"
version = "1.12.0"
path = "../native/build/libs/sql-native-1.12.0-SNAPSHOT.jar"

[[platform.java17.dependency]]
path = "../test-utils/build/libs/sql-test-utils-1.11.2-SNAPSHOT.jar"
path = "../test-utils/build/libs/sql-test-utils-1.12.0-SNAPSHOT.jar"
scope = "testOnly"

[[platform.java17.dependency]]
Expand Down
2 changes: 1 addition & 1 deletion ballerina/CompilerPlugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ id = "sql-compiler-plugin"
class = "io.ballerina.stdlib.sql.compiler.SQLCompilerPlugin"

[[dependency]]
path = "../compiler-plugin/build/libs/sql-compiler-plugin-1.11.2-SNAPSHOT.jar"
path = "../compiler-plugin/build/libs/sql-compiler-plugin-1.12.0-SNAPSHOT.jar"
2 changes: 1 addition & 1 deletion ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "sql"
version = "1.11.2"
version = "1.12.0"
dependencies = [
{org = "ballerina", name = "file"},
{org = "ballerina", name = "io"},
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=io.ballerina.stdlib
version=1.11.2-SNAPSHOT
version=1.12.0-SNAPSHOT

puppycrawlCheckstyleVersion=10.12.1
hikkariLibVersion=3.3.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
* This class provides functionality for the `ProcedureCallResult` to iterate through the sql result sets.
*/
public class ProcedureCallResultUtils {
private ProcedureCallResultUtils() {
public ProcedureCallResultUtils() {
}

public static Object getNextQueryResult(BObject procedureCallResult) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @since 1.2.0
*/
public class RecordIteratorUtils {
private RecordIteratorUtils() {
public RecordIteratorUtils() {
}

public static Object nextResult(BObject recordIterator) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,14 @@ void getStructTest() {
BMap<BString, Object> map = (BMap<BString, Object>) obj;
assertEquals(map.get(fromString("value1")), false);
}

@Test
void getRefCursorTest() {
BObject object = TestUtils.getMockObject("REF_CURSOR");
object.addNativeData(Constants.ParameterObject.SQL_TYPE_NATIVE_DATA, 2012);
object.addNativeData(Constants.ParameterObject.VALUE_NATIVE_DATA, null);

assertNull(OutParameterProcessor.get(object, TestUtils.getBTypedesc(TestUtils.getStringStructRecord()),
DefaultResultParameterProcessor.getInstance()));
}
}

0 comments on commit 0cf4e3e

Please sign in to comment.