Open EdissonG opened 2 years ago
Correct me if I'm wrong, but Oracle does not support arrays out of the box. You need to define it like custom type, e.g. CREATE TYPE string_array AS VARRAY(100) OF VARCHAR2(50);
. So, in TypeORM you should define arrays for Oracle like:
@Column("simple-array")
sizes: string[]
Oracle - arrays with TypeOrm
Expected Behavior
Do not get error ORA-01484: arrays can only be bound to PL/SQL statements
Actual Behavior
I am creating my arrangement as follows in my entity:
In my DTO I have the following validation:
Steps to Reproduce
My Environment
Additional Context
Relevant Database Driver(s)
aurora-mysql
aurora-postgres
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
spanner
sqlite
sqlite-abstract
sqljs
sqlserver
I don't know if it's because TypeOrm doesn't add the constraint that Oracle uses to save arrays.
Something that has to do with this is calling functions in TypeOrm,
#9291
Thanks you.