This is failing with Error: bind message supplies 1 parameters, but prepared statement "" requires 0
:
db.sql` SELECT * FROM status_view WHERE "deviceId" = '${device_id}'`
// using db = DatabaseClient("db")
I need the quotes on deviceId
because that is the column name (and yes, I’m aware it shouldn’t be so in Postgres… it is what it is).
If I manually supply a device_id as text the query works fine.
Why is it acting like this? Is this intended?