Skip to content

Commit

Permalink
Avoid encoding to hex twice
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Apr 6, 2024
1 parent 43b7f72 commit 74fb269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drift/lib/src/runtime/types/mapping.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ final class SqlTypes {
} else {
// BLOB literals are string literals containing hexadecimal data and
// preceded by a single "x" or "X" character. Example: X'53514C697465'
return "x'${hex.encode(dart)}'";
return "x'$hexString'";
}
} else if (dart is DriftAny) {
return mapToSqlLiteral(dart.rawSqlValue);
Expand Down

0 comments on commit 74fb269

Please sign in to comment.