Skip to content

Commit

Permalink
revert the change of $1 to ? again because it works for mysql as expe…
Browse files Browse the repository at this point in the history
…cted
  • Loading branch information
vanvuongngo authored Nov 25, 2024
1 parent 38175b6 commit bcdccd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/spin/v3/rdbms-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const DB_URL = "mysql://root:@127.0.0.1/spin_dev"
export async function handler(_req: Request, res: ResponseBuilder) {
try {
let conn = Mysql.open(DB_URL);
conn.execute('delete from test where id=$1', [4]);
conn.execute('delete from test where id=?', [4]);
conn.execute('insert into test values (4,5)', []);
let ret = conn.query('select * from test', []);
// return a object that looks like
Expand Down

0 comments on commit bcdccd8

Please sign in to comment.