Skip to content

Commit c4bd1bd

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/js-lang-overview.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ The target SQL data type defines how the system converts values. The system typi
5757

5858
JS `null` and `undefined` values always convert to SQL `NULL` values for the target SQL type.
5959

60+
Here's the fixed raw markdown table:
61+
6062
| Target SQL data type | Rules for converting JS value | Example |
6163
|----------------------|----------------------------|---------|
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"|
64+
| Integer Numbers (BOOLEAN, TINYINT, SHORTINT, MEDIUMINT, INT, BIGINT) | (Version 8.4.5) Integer Number values are stored in the SQL parameter as integer.<br>Boolean values are converted to `0/1` and stored in the SQL parameter as integer.<br>TINYINT, SHORTINT, MEDIUMINT, INT values are stored in the SQL parameter as integer.<br>If possible, BIGINT values are stored in the SQL parameter as integer.<br>All other JS values, including non-integer numbers, are converted to strings, and the result is stored in the SQL parameter.<br>(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 → "0" |
6365
| DECIMAL | Converted to strings | 123.45 → "123.45" |
6466
| FLOAT, DOUBLE | Stored as doubles for Numbers, converted to strings for other values | 3.14 → 3.14, "3.14" → "3.14" |
6567
| BIT | Converted to SQL BIT type | 1 → BIT(1) |

0 commit comments

Comments
 (0)