Skip to content

Commit

Permalink
Merge pull request #309 from kaneeldias/sql-update
Browse files Browse the repository at this point in the history
Update SQL version
  • Loading branch information
kaneeldias authored Jul 4, 2022
2 parents d57863b + d22b1c0 commit a5611fb
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-timestamped-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
- 2201.[0-9]+.x
paths-ignore:
- '*.md'
- 'docs/**'
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: PR build

on: [pull_request]
on:
pull_request:
branches:
- main
- 2201.[0-9]+.x

jobs:
ubuntu-build:
Expand Down
8 changes: 4 additions & 4 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[package]
org = "ballerinax"
name = "oracledb"
version = "1.4.0"
version = "1.5.0"
authors = ["Ballerina"]
keywords = ["database", "client", "network", "SQL", "RDBMS", "OracleDB", "Oracle"]
repository = "https://github.com/ballerina-platform/module-ballerinax-oracledb"
icon = "icon.png"
license = ["Apache-2.0"]
distribution = "2201.1.0"
distribution = "2201.2.0"

[[platform.java11.dependency]]
path = "../native/build/libs/oracledb-native-1.4.0.jar"
path = "../native/build/libs/oracledb-native-1.5.0-SNAPSHOT.jar"

[[platform.java11.dependency]]
path = "./lib/sql-native-1.4.0.jar"
path = "./lib/sql-native-1.5.0-20220701-115900-61cf131.jar"

[[platform.java11.dependency]]
path = "./lib/ojdbc8-12.2.0.1.jar"
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 = "oracledb-compiler-plugin"
class = "io.ballerina.stdlib.oracledb.compiler.OracleDBCompilerPlugin"

[[dependency]]
path = "../compiler-plugin/build/libs/oracledb-compiler-plugin-1.4.0.jar"
path = "../compiler-plugin/build/libs/oracledb-compiler-plugin-1.5.0-SNAPSHOT.jar"
6 changes: 3 additions & 3 deletions ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "observe"
version = "1.0.4"
version = "1.0.5"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
Expand Down Expand Up @@ -278,7 +278,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "sql"
version = "1.4.0"
version = "1.5.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
Expand Down Expand Up @@ -369,7 +369,7 @@ modules = [
[[package]]
org = "ballerinax"
name = "oracledb"
version = "1.4.0"
version = "1.5.0"
dependencies = [
{org = "ballerina", name = "crypto"},
{org = "ballerina", name = "file"},
Expand Down
8 changes: 4 additions & 4 deletions ballerina/tests/02-execute-basic-test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ isolated function testInsertAndSelectTableWithGeneratedKeys() returns sql:Error?
string|int? insertedId = result.lastInsertId;
if insertedId is string {
sql:ParameterizedQuery query = `SELECT * from TestNumericTable where col_number = 31`;
stream<NumericRecord, sql:Error?> streamData = oracledbClient->query(query);
record {|NumericRecord value;|}? data = check streamData.next();
stream<record {}, sql:Error?> streamData = oracledbClient->query(query);
record {|record {} value;|}? data = check streamData.next();
check streamData.close();
test:assertNotExactEquals(data?.value, (), "Incorrect InsertId returned.");
} else {
Expand All @@ -151,8 +151,8 @@ isolated function testInsertWithAllNilAndSelectTableWithGeneratedKeys() returns
string|int? insertedId = result.lastInsertId;
if insertedId is string {
sql:ParameterizedQuery query = `SELECT * from TestNumericTable where id = 2`;
stream<NumericRecord, sql:Error?> streamData = oracledbClient->query(query);
record {|NumericRecord value;|}? data = check streamData.next();
stream<record {}, sql:Error?> streamData = oracledbClient->query(query);
record {|record {} value;|}? data = check streamData.next();
check streamData.close();
test:assertNotExactEquals(data?.value, (), "Incorrect InsertId returned.");
} else {
Expand Down
2 changes: 1 addition & 1 deletion build-config/resources/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["database", "client", "network", "SQL", "RDBMS", "OracleDB", "Oracle
repository = "https://github.com/ballerina-platform/module-ballerinax-oracledb"
icon = "icon.png"
license = ["Apache-2.0"]
distribution = "2201.1.0"
distribution = "2201.2.0"

[[platform.java11.dependency]]
path = "../native/build/libs/[email protected]@.jar"
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- [Change default username for client initialization to `sys`](https://github.com/ballerina-platform/ballerina-standard-library/issues/2397)

## [1.4.1] - 2022-06-27

### Changed
- [Fix NullPointerException when retrieving record with default value](https://github.com/ballerina-platform/ballerina-standard-library/issues/2985)

## [1.4.0] - 2022-05-30

### Added
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=io.ballerina.stdlib
version=1.4.1-SNAPSHOT
version=1.5.0-SNAPSHOT

puppycrawlCheckstyleVersion=8.18
oracleDBDriverVersion=12.2.0.1
Expand All @@ -13,9 +13,9 @@ researchgateReleaseVersion=2.8.0
testngVersion=7.4.0
ballerinaGradlePluginVersion=0.15.0

ballerinaLangVersion=2201.1.0
ballerinaLangVersion=2201.2.0-20220613-141500-29439ddf

stdlibSqlVersion=1.4.0
stdlibSqlVersion=1.5.0-20220701-115900-61cf131

stdlibIoVersion=1.2.2
stdlibRegexVersion=1.3.0
Expand Down

0 comments on commit a5611fb

Please sign in to comment.