Skip to content

Commit

Permalink
feat: properly escape order
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Apr 6, 2024
1 parent a693fd5 commit 0bd58b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/sqlite-base-driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { validateOperation } from "@/lib/validation";

export default abstract class SqliteLikeBaseDriver extends BaseDriver {
protected escapeId(id: string) {
return id.replace(/"/g, '""');
return `"${id.replace(/"/g, '""')}"`;
}

abstract query(stmt: InStatement): Promise<DatabaseResultSet>;
Expand Down

0 comments on commit 0bd58b0

Please sign in to comment.