Repository navigation
dialect(oracle): version checks and fixes, tested on Oracle in Docker - #99
Merged
Merged
Conversation
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
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Checked on Oracle XE 11, 18, 21 and Oracle Free 23 in Docker.
ReturningGenerator (dialect api):
OracleDialect:
Container tests, the dialect built from a live connection: