console.error
Error: 'param_1' is an invalid type
at error (node_modules/typeorm-aurora-data-api-driver/node_modules/data-api-client/index.js:39:35)
at formatType (node_modules/typeorm-aurora-data-api-driver/node_modules/data-api-client/index.js:215:4)
at formatParam (node_modules/typeorm-aurora-data-api-driver/dist/typeorm-aurora-data-api-driver.umd.js:481:48)
at node_modules/typeorm-aurora-data-api-driver/node_modules/data-api-client/index.js:136:20
fix https://github.com/ArsenyYankovsky/typeorm-aurora-data-api-driver/issues/83
At least it fixes the usage of empty sets:
An empty array
[]
is transformed in empty string''
by typeorm. The parameter is{ value: '' }
which fails this condition https://github.com/ArsenyYankovsky/typeorm-aurora-data-api-driver/blob/c01d226382ff700f7986f75ae3078ef6aa7ce92a/src/query-transformer/mysql-query-transformer.ts#L154The resulting parameter is
which breaks later because it is invalid