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

#369 Type mapping documentation + refactoring #367

Merged
merged 16 commits into from
Aug 13, 2020
Merged

#369 Type mapping documentation + refactoring #367

merged 16 commits into from
Aug 13, 2020

Conversation

jakobbraun
Copy link
Contributor

@jakobbraun jakobbraun commented Aug 7, 2020

#369 Type mapping documentation
#370 Cleanup of oracle dialect

| -------------------------------------------------------------------------------- | --------- | -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| VARCHAR2(size) | ✓ | VARCHAR | |
| NVARCHAR2(size) | ✓ | VARCHAR | |
| NUMBER \[ (p \[, s\]) \] | ✓ | NUMBER or VARCHAR(2000000) | NUMBER with precision > 36 are casted to VARCHAR to prevent a loss of precision. [*](#Mapping-of-number-types) |
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the star lead somewhere? I can't click it.

doc/dialects/oracle.md Outdated Show resolved Hide resolved
doc/dialects/oracle.md Outdated Show resolved Hide resolved
doc/dialects/oracle.md Outdated Show resolved Hide resolved
doc/dialects/oracle.md Outdated Show resolved Hide resolved
doc/dialects/oracle.md Show resolved Hide resolved
case INTERVAL_DAY_TO_SECOND:
case ORACLE_BINARY_FLOAT:
case ORACLE_BINARY_DOUBLE:
case Types.ROWID:
Copy link
Contributor

Choose a reason for hiding this comment

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

According to the data mapping table, this data type is not supported. Check it in the test. If there is no test, create one. If it's not supported, remove it from here too

@@ -18,7 +19,7 @@
private boolean requiresSelectListAliasesForLimit = false;
private static final String TIMESTAMP_FORMAT = "'YYYY-MM-DD HH24:MI:SS.FF3'";
private static final List<String> TYPE_NAMES_REQUIRING_CAST = List.of("TIMESTAMP", "INTERVAL", "BINARY_FLOAT",
"BINARY_DOUBLE", "ROWID", "UROWID", "BLOB");
"BINARY_DOUBLE", "BLOB");
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove also blob from here, we don't support it

@@ -273,8 +274,6 @@ private String getProjectionString(final SqlColumn column, final String projecti
+ ")";
} else if (typeName.equals("NUMBER")) {
return getNumberProjectionString(column, projectionString, (OracleSqlDialect) dialect);
} else if (typeName.equals("ROWID") || typeName.equals("UROWID")) {
return "ROWIDTOCHAR(" + projectionString + ")";
} else if (typeName.equals("BLOB")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

And from here too

@sonarcloud
Copy link

sonarcloud bot commented Aug 13, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@AnastasiiaSergienko AnastasiiaSergienko left a comment

Choose a reason for hiding this comment

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

👍

@jakobbraun jakobbraun changed the title Type mapping documentation + refactoring #369 Type mapping documentation + refactoring Aug 13, 2020
@jakobbraun jakobbraun merged commit febc227 into master Aug 13, 2020
@AnastasiiaSergienko AnastasiiaSergienko deleted the doc-oracle branch August 13, 2020 15:06
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.

None yet

2 participants