Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nested table support #32

Merged

Conversation

lahirusamith
Copy link
Contributor

Purpose

$title

Fixes ballerina-platform/ballerina-library#1665

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests

@codecov
Copy link

codecov bot commented Sep 13, 2021

Codecov Report

Merging #32 (f04661b) into main (0f57fe2) will increase coverage by 0.16%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main      #32      +/-   ##
============================================
+ Coverage     85.01%   85.17%   +0.16%     
- Complexity      180      181       +1     
============================================
  Files            16       16              
  Lines           634      641       +7     
  Branches        137      139       +2     
============================================
+ Hits            539      546       +7     
  Misses           52       52              
  Partials         43       43              
Impacted Files Coverage Δ
...n/java/io/ballerina/stdlib/oracledb/Constants.java 100.00% <ø> (ø)
...allerina/stdlib/oracledb/utils/ConverterUtils.java 90.06% <ø> (-2.40%) ⬇️
ballerina/types.bal 100.00% <100.00%> (ø)
...terprocessor/OracleDBResultParameterProcessor.java 76.35% <100.00%> (+7.12%) ⬆️
...processor/OracleDBStatementParameterProcessor.java 76.11% <100.00%> (+0.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fef3c99...f04661b. Read the comment docs.

@lahirusamith lahirusamith marked this pull request as ready for review September 13, 2021 06:17
@daneshk
Copy link
Member

daneshk commented Sep 13, 2021

@lahirusamith we need negative test cases to validate error messages

@lahirusamith
Copy link
Contributor Author

@lahirusamith we need negative test cases to validate error messages

@daneshk few negative test cases added in f266089.

VALUES (${pk}, ${students}, ${grades})`;
sql:ExecutionResult|sql:Error result = executeQuery(insertQuery);
if result is sql:ApplicationError {
test:assertTrue(result.message().includes("Invalid parameter: null is passed as value for SQL type: varray"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the error message, the SQL type should be nested table right?

Copy link
Member

@daneshk daneshk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Fix the conflicts

# Conflicts:
#	ballerina/Ballerina.toml
#	ballerina/Dependencies.toml
#	gradle.properties
@daneshk daneshk merged commit 5329b61 into ballerina-platform:main Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add nested table data type support in oracledb module
4 participants