Commit 9ba03aa
Replace invalid b"..." format with PostgreSQL-compatible '\x...' hex format
for bytea literals. The old format caused syntax errors when executing
queries with byte values.
Changes:
- Add encoding/hex import to cel2sql.go
- Update bytea literal generation to use '\x' + hex encoding
- Remove unused bytesToOctets function from utils.go
- Update test expectations to match new hex format
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6952938 commit 9ba03aa
File tree
4 files changed
+6
-17
lines changed4 files changed
+6
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
1534 | 1535 | | |
1535 | 1536 | | |
1536 | 1537 | | |
1537 | | - | |
1538 | | - | |
1539 | | - | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
1540 | 1541 | | |
1541 | 1542 | | |
1542 | 1543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | 151 | | |
164 | 152 | | |
165 | 153 | | |
| |||
0 commit comments