Skip to content

Commit b2a01cf

Browse files
authored
Add some upcoming correctness changes (#1601)
1 parent ebb7fa3 commit b2a01cf

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/content/doc-surrealdb/cli/env.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Environment variables are divided into four types:
2222

2323
## SurrealDB environment variables
2424

25+
Many environment variables have a maximum value equivalent to the greatest possible `usize`, which is an unsigned integer with a number of bytes depending on the target that the database runs on. For most systems this will be 64 bits, leading to a maximum size of 18_446_744_073_709_551_615 (2<sup>64</sup>), while for 32 bits the maximum will be 4_294_967_296 (2<sup>32</sup>).
26+
2527
<table>
2628
<thead>
2729
<tr>

src/content/doc-surrealql/datamodel/arrays.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ CREATE person SET results = [
117117
];
118118
```
119119

120-
A maximum number of items can be specified for an array.
120+
A required number of items can be specified for an array.
121121

122122
```surql
123123
/**[test]
@@ -126,7 +126,7 @@ A maximum number of items can be specified for an array.
126126
value = "NONE"
127127
128128
[[test.results]]
129-
error = ""Couldn't coerce value for field `employees` of `team:2pjsv6kmzs0x06ortqfl`: Expected `array<record<employee>,5>` but found an collection of length `6`""
129+
error = ""Couldn't coerce value for field `employees` of `team:2pjsv6kmzs0x06ortqfl`: Expected `array<record<employee>,5>` but found a collection of length `6`""
130130
131131
*/
132132
@@ -142,7 +142,7 @@ CREATE team SET employees = [
142142
```
143143

144144
```surql title="Response"
145-
"Couldn't coerce value for field `employees` of `team:2pjsv6kmzs0x06ortqfl`: Expected `array<record<employee>,5>` but found an collection of length `6`"
145+
"Couldn't coerce value for field `employees` of `team:2pjsv6kmzs0x06ortqfl`: Expected `array<record<employee>,5>` but found a collection of length `6`"
146146
```
147147

148148
## Mapping and filtering on arrays

src/content/doc-surrealql/functions/database/encoding.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ encoding::base64::encode(bytes) -> string
5757

5858
<TabItem label="API DEFINITION (after 2.3.0)">
5959
```surql
60-
encoding::base64::encode(bytes, option<bool>) -> string
60+
encoding::base64::encode(bytes, $pad_output: option<bool>) -> string
6161
```
6262

6363
</TabItem>

src/content/doc-surrealql/statements/define/analyzer.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,4 +540,4 @@ This example creates an analyzer specifically designed for source code analysis.
540540
```surql
541541
-- Creates an analyzer suitable for source code analysis.
542542
DEFINE ANALYZER code TOKENIZERS class,camel FILTERS lowercase,ascii;
543-
```
543+
```

0 commit comments

Comments
 (0)