Sosuke Suzuki
a118c9e636
fix(sql): fix inverted logic in JSC__isBigIntInInt64Range/UInt64Range
...
The C++ implementation had two compounding bugs:
1. Parameter names were swapped: Zig passes (min, max) but C++ declared (max, min)
2. The logic used OR short-circuit instead of AND, returning true on the first check
Combined, this caused the function to return true when the BigInt was
OUTSIDE the range, and false when it was INSIDE — the exact opposite of
the intended behavior.
Impact:
- All BigInt parameter binding in Bun.SQL (MySQL) would fail with
ERR_OUT_OF_RANGE for valid in-range values
- Out-of-range BigInts would be silently accepted and truncated
Fix: Change parameter order to (min, max) and use proper AND logic
(return false if < min, otherwise check <= max).
Added regression tests via bun:internal-for-testing that directly
exercise both functions, plus MySQL integration tests for BigInt
parameter binding.
2026-02-26 12:54:19 +09:00
..
2026-02-06 18:05:17 -08:00
2026-01-28 20:24:02 -08:00
2026-02-25 15:15:37 -08:00
2025-12-15 12:51:13 -08:00
2026-02-23 05:28:01 -08:00
2026-02-26 12:54:19 +09:00
2026-02-24 22:02:51 -08:00
2026-02-25 15:15:37 -08:00
2026-02-23 01:28:37 -08:00
2026-01-19 22:45:56 -08:00
2025-11-10 14:38:26 -08:00
2026-02-19 20:03:18 -08:00
2026-02-21 14:04:25 -08:00
2025-11-10 14:38:26 -08:00
2026-01-22 13:44:49 -08:00
2026-02-25 15:39:13 -08:00
2026-01-19 17:12:42 -08:00
2026-02-22 17:45:34 -08:00
2026-01-26 10:52:35 -08:00
2026-02-21 14:04:25 -08:00
2026-02-26 12:54:19 +09:00
2026-02-11 22:47:41 -08:00
2026-02-03 22:18:40 -08:00
2025-10-03 17:10:28 -07:00
2026-02-15 03:33:48 -08:00
2025-11-24 20:16:03 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2026-02-09 22:03:54 -08:00
2026-02-20 17:49:01 -08:00
2025-11-10 14:38:26 -08:00
2025-11-20 20:56:02 -08:00
2026-02-25 15:28:43 -08:00
2025-11-10 14:38:26 -08:00
2026-02-12 00:27:00 -08:00
2026-02-25 15:15:37 -08:00
2026-01-21 13:01:25 -08:00
2025-11-10 14:38:26 -08:00
2025-12-22 12:07:24 -08:00
2026-01-23 00:07:06 -08:00
2026-01-21 13:01:25 -08:00
2025-12-25 14:00:58 -08:00
2026-01-14 16:46:20 -08:00
2025-11-10 14:38:26 -08:00
2025-10-04 02:17:55 -07:00
2026-01-22 14:35:18 -08:00
2025-11-26 00:02:43 -08:00
2026-01-30 01:38:45 -08:00
2025-11-05 15:28:28 -08:00
2025-11-10 14:38:26 -08:00
2025-10-23 23:08:08 -07:00
2026-01-05 10:21:49 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2026-01-31 16:59:03 -08:00
2026-02-25 15:15:37 -08:00
2026-02-10 10:58:21 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 19:58:02 -08:00
2026-02-12 14:47:31 -08:00
2026-02-25 15:15:37 -08:00
2025-09-26 15:19:45 -07:00
2026-01-22 04:22:45 -08:00
2025-10-29 19:29:04 -07:00
2025-11-03 22:20:07 -08:00
2025-11-10 14:38:26 -08:00
2026-02-02 23:12:21 -08:00
2025-11-20 20:56:02 -08:00
2025-09-26 22:21:00 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2026-01-30 16:20:45 -08:00
2026-01-23 00:24:18 -08:00
2026-01-22 04:22:45 -08:00
2025-11-10 14:38:26 -08:00
2026-01-21 13:01:25 -08:00
2025-10-23 23:08:08 -07:00
2025-11-10 14:38:26 -08:00
2026-02-08 19:49:26 -08:00
2026-01-26 10:52:35 -08:00
2025-10-04 00:31:47 -07:00
2025-11-10 14:38:26 -08:00
2025-10-02 14:11:29 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-09-09 20:41:10 -07:00
2026-02-25 15:39:13 -08:00
2026-01-07 22:46:51 -08:00
2026-02-12 00:28:44 -08:00
2026-01-26 10:52:35 -08:00
2026-02-09 22:03:54 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2026-02-19 12:30:15 -08:00
2025-11-10 14:38:26 -08:00
2026-02-12 14:47:31 -08:00
2025-10-23 23:08:08 -07:00
2026-02-12 14:47:31 -08:00
2026-01-16 14:18:48 -08:00
2026-02-20 21:13:51 -08:00
2025-11-10 14:38:26 -08:00
2026-02-20 21:13:51 -08:00
2025-10-18 18:14:01 -07:00
2025-11-10 14:38:26 -08:00
2025-09-14 04:14:48 -07:00
2026-02-23 05:28:01 -08:00
2025-11-30 23:11:33 -08:00
2026-01-30 01:38:45 -08:00
2026-01-21 13:01:25 -08:00
2025-09-30 00:10:15 -07:00
2025-12-06 16:37:09 -08:00
2025-12-01 21:59:11 -08:00
2025-11-10 14:38:26 -08:00
2025-11-13 19:29:16 -08:00
2025-09-26 15:15:58 -07:00
2026-01-14 12:52:41 -08:00
2026-02-25 15:15:37 -08:00
2026-02-19 20:15:11 -08:00
2026-02-15 00:36:57 -08:00
2026-02-25 15:15:37 -08:00
2025-09-03 15:40:44 -07:00
2025-09-22 19:28:26 -07:00
2025-11-10 14:38:26 -08:00
2026-02-10 23:04:46 -08:00
2025-11-10 14:38:26 -08:00
2026-02-21 02:15:52 -08:00
2025-12-15 19:50:11 -08:00
2025-12-15 19:50:11 -08:00
2026-01-20 12:47:07 -08:00
2026-02-23 18:24:37 -08:00
2025-09-03 15:40:44 -07:00
2025-11-10 14:38:26 -08:00
2026-02-09 22:03:54 -08:00
2025-10-03 17:10:28 -07:00
2026-02-25 15:15:37 -08:00
2025-12-15 13:21:41 -08:00
2026-02-21 02:18:47 -08:00
2026-01-14 16:46:20 -08:00
2026-01-22 04:22:45 -08:00
2026-02-22 17:45:34 -08:00
2025-11-10 14:38:26 -08:00
2025-12-18 21:42:14 -08:00