Skip to content

Commit

Permalink
nits with MATCH AGAINST
Browse files Browse the repository at this point in the history
  • Loading branch information
drodrigues4 committed Jul 26, 2024
1 parent 7068637 commit 80e0bb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ import type { BinaryOperator } from "~/sql/expressions";
* @see isNull for a way to test equality to NULL.
*/
export const match: BinaryOperator = (left: SQLWrapper, right: unknown): SQL => {
return sql`MATCH ${left} AGAINST ${bindIfParam(right, left)}`;
return sql`MATCH (${left}) AGAINST (${bindIfParam(right, left)})`;
};

0 comments on commit 80e0bb0

Please sign in to comment.