Issue Description
here is a query like below
await OrderBill.find({
where: {
paidAt: Raw((alias) => `DATE(${alias}) = DATE(:date)`, { date: index.toDate() }),
type: OrderBillType.HOSPITAL_FEE,
isPaid: true,
},
})
Expected Behavior
generate right params array (omit select)
SELECT *
FROM `mrcs_order_bill` `OrderBill`
WHERE DATE(`OrderBill`.`paidAt`) = DATE(?)
AND `OrderBill`.`type` = ?
AND `OrderBill`.`isPaid` = ? -- PARAMETERS: ["2020-12-31T16:00:00.000Z","HOSPITAL_FEE",true]
Actual Behavior
generate wrong params array (omit select)
SELECT *
FROM `mrcs_order_bill` `OrderBill`
WHERE DATE(`OrderBill`.`paidAt`) = DATE(?)
AND `OrderBill`.`type` = ?
AND `OrderBill`.`isPaid` = ? -- PARAMETERS: ["HOSPITAL_FEE",true,"2020-12-31T16:00:00.000Z"]
Steps to Reproduce
My Environment
| Dependency |
Version |
| Operating System |
|
| Node.js version |
v12.20.0 |
| Typescript version |
v4.1.3 |
| TypeORM version |
v0.2.29 |
Additional Context
Relevant Database Driver(s)
Are you willing to resolve this issue by submitting a Pull Request?
Issue Description
here is a query like below
Expected Behavior
generate right params array (omit select)
Actual Behavior
generate wrong params array (omit select)
Steps to Reproduce
// insert code hereMy Environment
Additional Context
Relevant Database Driver(s)
aurora-data-apiaurora-data-api-pgbetter-sqlite3cockroachdbcordovaexpomongodbmysqlnativescriptoraclepostgresreact-nativesapsqlitesqlite-abstractsqljssqlserverAre you willing to resolve this issue by submitting a Pull Request?