This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
Using raw queries with tagged template literals doesn't include parameters #595
Labels
Milestone
Bug description
It seems to me that the raw queries feature does not really work with tagged template literals using parameters.
I have tried multiple variations of various queries but parameters never get included.
How to reproduce
Using postgres and a simple table
this code does not work
and results in the following error
Enabling query logging in postgres and peeking into the log file i see the following log entrys which accurately reflect the error
It seems that the parameter simply doesn't get included, looking at other queries generated by the prisma client they all include an extra line in the log, like
whereas using the raw query this line is missing.
Am i missing something? That should just work, shouldn`t it?
Expected behavior
Parameters in raw queries using tagged template literals should get included.
Environment & setup
Using Windows 10 with WSL Ubuntu 18.04.4 LTS
Postgres 10.12
NodeJs 12
And the respective latest versions of prisma2, typescript and ts-node
The text was updated successfully, but these errors were encountered: