denodrivers / denodrivers/mysql

Variable can't contain backslash

Open
#57 3 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
264
Forks
64
PR merge metrics
No merged PRs in 30d

Description

This is an example code.
```js
const text = 'abc\\';
await client.execute('insert into users(name) values(?)', [text]);
```
This is a result of the query string.
```sql
insert into users(name) values("abc\")
```
So, it will throw an error.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the provided JavaScript example against the Deno MySQL driver, then trace the parameter escaping that produces the SQL shown in the issue. Done means a value containing a trailing backslash inserts successfully without an SQL error, with coverage for this case if the project’s existing tests provide a suitable place.

Written by the indexing model from the issue text.

Assessment

Tech stack
deno, mysql, typescript
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.