Skip to content

dialect(oracle): version checks and fixes, tested on Oracle in Docker - #99

Merged
stbischof merged 1 commit into
eclipse-daanse:mainfrom
dbulahov:main241126
Nov 24, 2026
Merged

stbischof merged 1 commit into
eclipse-daanse:mainfrom
dbulahov:main241126

Conversation

@dbulahov

Copy link
Copy Markdown
Contributor

What does this PR do?

Checked on Oracle XE 11, 18, 21 and Oracle Free 23 in Docker.

ReturningGenerator (dialect api):

  • returningInto / supportsReturningInto: RETURNING c1, c2 INTO ?, ?, values into out parameters bound after the statement's own; returning / supportsReturning keep the form that returns rows

OracleDialect:

  • returningGenerator: RETURNING ... INTO in every version; the plain RETURNING written from 23 on failed with ORA-00925 (missing INTO), 23 too, so returning() writes none; * names no column, is not written
  • supportsCreateTableIfNotExists, supportsCreateIndexIfNotExists, supportsDropIndexIfExists, supportsDropViewIfExists: from 23, were false for every version; supportsDropConstraintIfExists stays false, no version has it (ORA-01735)

Container tests, the dialect built from a live connection:

  • OracleContainers: XE and Free from one helper, 11g reached by its SID
  • OracleDropTableIfExistsContainerTest: DROP TABLE IF EXISTS from 23
  • OracleIfExistsTest: CREATE TABLE/INDEX IF NOT EXISTS, DROP INDEX/VIEW IF EXISTS from 23; DROP CONSTRAINT IF EXISTS in no version
  • OracleSupportsUsersTest: NO AUTHENTICATION from 18, no user on 11g; the user logs in once given a password
  • OracleUsersTest: CREATE USER [IF NOT EXISTS], DROP USER [IF EXISTS]
  • OracleDropUserIfExistsTest: DROP USER IF EXISTS from 23
  • OracleRolesTest: CREATE ROLE [IF NOT EXISTS], DROP ROLE [IF EXISTS], grant with and without admin option, revoke
  • OracleMaterializedViewTest: CREATE MATERIALIZED VIEW IF NOT EXISTS from 23, rows kept until refreshed
  • OracleDropMaterializedViewIfExistsTest: DROP MATERIALIZED VIEW IF EXISTS from 23
  • OracleDropFunctionIfExistsTest, OracleDropProcedureIfExistsTest: DROP FUNCTION/PROCEDURE IF EXISTS from 23, named without types
  • OracleReturningTest: RETURNING ... INTO for INSERT, UPDATE, DELETE, read with registerReturnParameter; RETURNING without INTO fails
  • OracleGeneratorsRoundTripTest: returning_unsupported, no 23c claim

Checked on Oracle XE 11, 18, 21 and Oracle Free 23 in Docker.

ReturningGenerator (dialect api):
- returningInto / supportsReturningInto: RETURNING c1, c2 INTO ?, ?,
  values into out parameters bound after the statement's own;
  returning / supportsReturning keep the form that returns rows

OracleDialect:
- returningGenerator: RETURNING ... INTO in every version; the plain
  RETURNING written from 23 on failed with ORA-00925 (missing INTO),
  23 too, so returning() writes none; * names no column, is not written
- supportsCreateTableIfNotExists, supportsCreateIndexIfNotExists,
  supportsDropIndexIfExists, supportsDropViewIfExists: from 23, were
  false for every version; supportsDropConstraintIfExists stays false,
  no version has it (ORA-01735)

Container tests, the dialect built from a live connection:
- OracleContainers: XE and Free from one helper, 11g reached by its SID
- OracleDropTableIfExistsContainerTest: DROP TABLE IF EXISTS from 23
- OracleIfExistsTest: CREATE TABLE/INDEX IF NOT EXISTS, DROP INDEX/VIEW
  IF EXISTS from 23; DROP CONSTRAINT IF EXISTS in no version
- OracleSupportsUsersTest: NO AUTHENTICATION from 18, no user on 11g;
  the user logs in once given a password
- OracleUsersTest: CREATE USER [IF NOT EXISTS], DROP USER [IF EXISTS]
- OracleDropUserIfExistsTest: DROP USER IF EXISTS from 23
- OracleRolesTest: CREATE ROLE [IF NOT EXISTS], DROP ROLE [IF EXISTS],
  grant with and without admin option, revoke
- OracleMaterializedViewTest: CREATE MATERIALIZED VIEW IF NOT EXISTS
  from 23, rows kept until refreshed
- OracleDropMaterializedViewIfExistsTest: DROP MATERIALIZED VIEW IF
  EXISTS from 23
- OracleDropFunctionIfExistsTest, OracleDropProcedureIfExistsTest:
  DROP FUNCTION/PROCEDURE IF EXISTS from 23, named without types
- OracleReturningTest: RETURNING ... INTO for INSERT, UPDATE, DELETE,
  read with registerReturnParameter; RETURNING without INTO fails
- OracleGeneratorsRoundTripTest: returning_unsupported, no 23c claim

Signed-off-by: <bulahovdenis@gmail.com>
@stbischof
stbischof merged commit 534d5f1 into eclipse-daanse:main Nov 24, 2026
29 checks passed
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.

2 participants