You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce or a small repository showing the problem:
QueryExpressionMap's clone method doesn't clone all values correctly, specifically insertColumns, whereEntities, and nativeParameters are currently cloned by reference. The persistent reference to nativeParameters between clones causes issues with postgres as it generates the wrong parameter names ($1, $2, $3...) in QueryBuilder.computeWhereParameter()
...
constqb=connection.manager.createQueryBuilder("Post","post");awaitPromise.all([qb.clone().where({id: 1}).getOne(),qb.clone().where({id: 1}).getOne(),]);// postgres error - "could not determine data type of parameter $1"
I'm opening this issue so I can reference it in a PR that fixes this bug
The text was updated successfully, but these errors were encountered:
Issue type:
[x] bug report
Database system/driver:
[x]
postgres
TypeORM version:
[x]
0.2.17
(or put your version here)Steps to reproduce or a small repository showing the problem:
QueryExpressionMap
'sclone
method doesn't clone all values correctly, specificallyinsertColumns
,whereEntities
, andnativeParameters
are currently cloned by reference. The persistent reference tonativeParameters
between clones causes issues with postgres as it generates the wrong parameter names ($1
,$2
,$3
...) inQueryBuilder.computeWhereParameter()
I'm opening this issue so I can reference it in a PR that fixes this bug
The text was updated successfully, but these errors were encountered: