Skip to content

Commit

Permalink
fix: Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
larshelge committed Nov 24, 2024
1 parent 7adfda5 commit 11f688f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public String coalesce(String expression, String defaultValue) {

@Override
public String jsonExtract(String column, String property) {
return "json_unquote(json_extract(" + column + ", '$." + property + "'))";
return String.format("json_unquote(json_extract(%s, '$.%s'))", column, property);
}

@Override
Expand Down

0 comments on commit 11f688f

Please sign in to comment.