Skip to content

Commit fc900b7

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/js-lang-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ 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. BigInt values are attempted to store in SQL parameter as integer as well. JS Boolean values are converted to 0/1 and stored in SQL parameter as integer. All other JS values, including non-integer Numbers are converted to strings and result is stored in SQL parameter. (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"|
6363
| DECIMAL | Converted to strings | 123.45 → "123.45" |
6464
| FLOAT, DOUBLE | Stored as doubles for Numbers, converted to strings for other values | 3.14 → 3.14, "3.14" → "3.14" |
6565
| BIT | Converted to SQL BIT type | 1 → BIT(1) |

0 commit comments

Comments
 (0)