Repository navigation
Commit cddd637
committed
fix: cast jsonb_array_length to INTEGER to match PostgreSQL's int4 return type
PostgreSQL's jsonb_array_length() returns INTEGER (int4, OID 23), not BIGINT.
The previous BIGINT cast was incorrect and caused test failures.
Changes:
- query_remapper_function.go: Changed CAST to INTEGER instead of BIGINT
- query_handler_test.go: Updated test expectations from Int8OID to Int4OID1 parent 8bb197e commit cddd637
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments