@@ -3,7 +3,7 @@ import 'dotenv/config';
3
3
import type { TestFn } from 'ava' ;
4
4
import anyTest from 'ava' ;
5
5
import Docker from 'dockerode' ;
6
- import { asc , eq , Name , placeholder , sql } from 'drizzle-orm' ;
6
+ import { asc , eq , Name , sql } from 'drizzle-orm' ;
7
7
import {
8
8
alias ,
9
9
boolean ,
@@ -27,7 +27,8 @@ import { drizzle } from 'drizzle-orm/mysql2';
27
27
import getPort from 'get-port' ;
28
28
import * as mysql from 'mysql2/promise' ;
29
29
import { v4 as uuid } from 'uuid' ;
30
- import { toLocalDate } from './utils' ;
30
+
31
+ import { toLocalDate } from './utils.ts' ;
31
32
32
33
const mySchema = mysqlSchema ( 'mySchema' ) ;
33
34
@@ -660,7 +661,7 @@ test.serial('prepared statement reuse', async (t) => {
660
661
661
662
const stmt = db . insert ( usersTable ) . values ( {
662
663
verified : true ,
663
- name : placeholder ( 'name' ) ,
664
+ name : sql . placeholder ( 'name' ) ,
664
665
} ) . prepare ( ) ;
665
666
666
667
for ( let i = 0 ; i < 10 ; i ++ ) {
@@ -695,7 +696,7 @@ test.serial('prepared statement with placeholder in .where', async (t) => {
695
696
id : usersTable . id ,
696
697
name : usersTable . name ,
697
698
} ) . from ( usersTable )
698
- . where ( eq ( usersTable . id , placeholder ( 'id' ) ) )
699
+ . where ( eq ( usersTable . id , sql . placeholder ( 'id' ) ) )
699
700
. prepare ( ) ;
700
701
const result = await stmt . execute ( { id : 1 } ) ;
701
702
0 commit comments