Commit fb6c836
committed
Fix CHAR(0) to return null byte instead of empty byte array
CHAR(0) should return a single null byte (\0) not an empty byte array.
This was exposed by string-to-number conversion changes that now
correctly convert empty strings to 0 instead of erroring.
Before: CHAR('') -> error path -> append null byte
After: CHAR('') -> converts to 0 -> CHAR(0) -> should return null byte
Fixes the failing test: select if('', 1, char(''))1 parent e145143 commit fb6c836
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
0 commit comments