Avoid encoding to hex twice

This commit is contained in:
Simon Binder 2024-04-06 14:59:52 +02:00
parent 43b7f72bad
commit 74fb269615
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 1 additions and 1 deletions

View File

@ -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);