Skip to content

Commit

Permalink
Add documention about overflowing numeric record-ids (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
DelSkayn authored Mar 8, 2024
1 parent 2790f9e commit 90ad577
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion versioned_docs/version-nightly/surrealql/datamodel/ids.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ CREATE article SET id = "10";
```

## Numeric Record IDs
If a numeric value is specified without any decimal point suffix and is within the range `-9223372036854775808` to `9223372036854775807` then the value will be parsed, stored, and treated as a 64-bit integer.
If a numeric value is specified without any decimal point suffix and is within the range `-9223372036854775808` to `9223372036854775807` then the value will be parsed, stored, and treated as a 64-bit signed integer.

If the numeric number is outside the range of a signed 64-bit integer it will be treated as a string.

```surql
CREATE temperature:17493 SET time = time::now(), celsius = 37.5;
Expand Down

0 comments on commit 90ad577

Please sign in to comment.