Skip to content

Commit 0f206dd

Browse files
committed
Update outlandish query to use original blob literal
1 parent 38dc5d7 commit 0f206dd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/Compiler/Sema/InferenceState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ extension InferenceState {
217217
validateCanUnify(type: ty, with: tv.kind, at: location)
218218
substitute(tv, for: ty)
219219

220-
case (.integer, .real), (.real, .integer), (.any, _), (_, .any):
220+
case (.integer, .real), (.real, .integer), (.any, _), (_, .any), (.text, .blob), (.blob, .text):
221221
return // Not equal but valid to use together
222222

223223
case let (.fn(args1, ret1), .fn(args2, ret2)) where args1.count == args2.count:

Tests/CompilerTests/Compiler/CompileOutlandishCTE.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ WITH RECURSIVE
2525
SELECT group_concat( substr(' .+*#', 1+min(iter/7,4), 1), '')
2626
FROM m2 GROUP BY cy
2727
)
28-
SELECT group_concat(rtrim(t),'0a') FROM a;
28+
SELECT group_concat(rtrim(t),x'0a') FROM a;
2929

3030
-- CHECK: SIGNATURE
3131
-- CHECK: ...

0 commit comments

Comments
 (0)