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

Oracle - Cannot create table that contains a column named "DELIMITER" #2

Open
JustinPealing opened this issue Jan 30, 2020 · 1 comment · Fixed by #6
Open

Oracle - Cannot create table that contains a column named "DELIMITER" #2

JustinPealing opened this issue Jan 30, 2020 · 1 comment · Fixed by #6
Labels
bug Something isn't working

Comments

@JustinPealing
Copy link

Running the following script against an Oracle database:

CREATE TABLE "FOO" 
(
    "DELIMITER" VARCHAR2(30 BYTE)
);

Fails with this error:

Oracle exception has occured in script: '001_TABLES.sql'
Oracle error code: 0; Number -2147467259; Message: 904
Oracle.ManagedDataAccess.Client.OracleException (0x80004005): ORA-00904: : invalid identifier
   at OracleInternal.ServiceObjects.OracleConnectionImpl.VerifyExecution(Int32& cursorId, Boolean bThrowArrayBindRelatedErrors, SqlStatementType sqlStatementType, Int32 arrayBindCount, OracleException& exceptionForArrayBindDML, Boolean& hasMoreRowsInDB, Boolean bFirstIterationDone)
   at OracleInternal.ServiceObjects.OracleCommandImpl.ExecuteNonQuery(String commandText, OracleParameterCollection paramColl, CommandType commandType, OracleConnectionImpl connectionImpl, Int32 longFetchSize, Int64 clientInitialLOBFS, OracleDependencyImpl orclDependencyImpl, Int64[]& scnFromExecution, OracleParameterCollection& bindByPositionParamColl, Boolean& bBindParamPresent, OracleException& exceptionForArrayBindDML, OracleConnection connection, OracleLogicalTransaction& oracleLogicalTransaction, Boolean isFromEF)
   at Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteNonQuery()
   at DbUp.Oracle.OracleScriptExecutor.ExecuteCommandsWithinExceptionHandler(Int32 index, SqlScript script, Action excuteCommand)

Looks like it something to do with this? https://github.com/DbUp/DbUp/blob/e874234e8d320dc37c272e5137092da0b89d72f3/src/dbup-oracle/OracleCommandReader.cs#L9

@JustinPealing JustinPealing added the bug Something isn't working label Jan 30, 2020
@droyad droyad transferred this issue from DbUp/DbUp Jan 30, 2024
@epenet epenet mentioned this issue Mar 5, 2024
4 tasks
@markoueis
Copy link

I'm running into this as well. is there a work around or do we have to wait for merging the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Bugs
2 participants