mirror of https://github.com/AMT-Cheif/drift.git
Avoid encoding to hex twice
This commit is contained in:
parent
43b7f72bad
commit
74fb269615
|
@ -124,7 +124,7 @@ final class SqlTypes {
|
||||||
} else {
|
} else {
|
||||||
// BLOB literals are string literals containing hexadecimal data and
|
// BLOB literals are string literals containing hexadecimal data and
|
||||||
// preceded by a single "x" or "X" character. Example: X'53514C697465'
|
// preceded by a single "x" or "X" character. Example: X'53514C697465'
|
||||||
return "x'${hex.encode(dart)}'";
|
return "x'$hexString'";
|
||||||
}
|
}
|
||||||
} else if (dart is DriftAny) {
|
} else if (dart is DriftAny) {
|
||||||
return mapToSqlLiteral(dart.rawSqlValue);
|
return mapToSqlLiteral(dart.rawSqlValue);
|
||||||
|
|
Loading…
Reference in New Issue