Skip to content

Commit ff4017f

Browse files
committed
PS-10058 [DOCS] - Update rules for conversion in JS 8.4
modified: docs/js-lang-overview.md
1 parent d5d1501 commit ff4017f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/js-lang-overview.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,17 @@ JS `null` and `undefined` values always convert to SQL `NULL` values for the tar
5959

6060
| Target SQL data type | Rules for converting JS value | Example |
6161
|----------------------|----------------------------|---------|
62-
| Integer Numbers (BOOLEAN, TINYINT, SHORTINT, MEDIUMINT, INT, BIGINT) | JS Integers/Numbers: integers stored as-is, BIGINTs attempted as integers, others as strings. | 42 → 42 <br> 3.14 → "3.14" <br> true → "true"|
62+
| Integer Numbers (BOOLEAN, TINYINT, SHORTINT, MEDIUMINT, INT, BIGINT) | (Version 8.4.5) JS integer Number values are directly stored in SQL parameter as integer.
63+
64+
JS Boolean values are converted to `0/1` and stored in SQL parameter as integer.
65+
66+
TINYINT, SHORTINT, MEDIUMINT, INT values are directly stored in SQL parameter as integer.
67+
68+
BIGINT values are attempted to store in SQL parameter as integer as well.
69+
70+
All other JS values, including non-integer Numbers are converted to strings and result is stored in SQL parameter.
71+
72+
(Version 8.4.4 - JS Integers/Numbers: integers stored as-is, BIGINTs attempted as integers, others as strings.) | 42 → 42 <br> 3.14 → "3.14" <br> true → "true"|
6373
| DECIMAL | Converted to strings | 123.45 → "123.45" |
6474
| FLOAT, DOUBLE | Stored as doubles for Numbers, converted to strings for other values | 3.14 → 3.14, "3.14" → "3.14" |
6575
| BIT | Converted to SQL BIT type | 1 → BIT(1) |

0 commit comments

Comments
 (0)