-
-
Couldn't load subscription status.
- Fork 147
Closed
Labels
Description
Expected Behavior
Before upgrading to Slonik 26.1.0, tagged template literal generates sql string correctly.
Current Behavior
Inserting a number in the tagged template literal will generate # in front and at the back of $ of sql placeholder.
Possible Solution
Steps to Reproduce
import { sql } from 'slonik';
const limit = 1;
const offset = 2;
const query = sql`SELECT 1 FROM "user" LIMIT ${limit} OFFSET ${offset}`;
The query.sql yields 'SELECT 1 FROM "user" LIMIT #$#1 OFFSET #$#2'