Replies: 2 comments 2 replies
-
I had exactly the same issue. It is due to the fact that VARCHAR2 needs a length spec. However, I was not able to figure out how to use sqlmodel to do that. The workaround I found is: create the table in Oracle before using sqlmodel. That way the "create table" sql is not implemented hence avoided the error |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are you sure this is an SQLModel issue? It really looks like an SQLAlchemy issue. Can you show working SQLAlchemy code similar to this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
sqlalchemy.exc.DatabaseError: (cx_Oracle:Database:Error) ORA-00906: missing left parenthesis
[SQL:
CREATE TABLE hero(
id INTERGER NOT NULL,
name VARCHAR2 NOT NULL,
secret_name VARCHAR2 NOT NULL,
age INTERGER,
PRIMARY KEY(id)
)
]
Operating System
Windows
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
3.11.4
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions