diff --git a/doc/syntax.md b/doc/syntax.md index 4251254..d11a5e3 100644 --- a/doc/syntax.md +++ b/doc/syntax.md @@ -70,13 +70,13 @@ type-name: BOOL[EAN] | [BIG]INT | DECIMAL | FLOAT | DOUBLE | JSONB | TEXT | TIME ## Syntax notes -- String literals can be quited with `"` or `'`. +- String literals can be quoted with `"` or `'`. - Column or table names can be escaped with `. - Column and table names are case-sensitive, syntax keywords are not. - Comments are supported with `--` at the start of the line or `/* comment */` syntax. - The result of comparisons between different types or with NULL depends on the underlying database. - Casting behaviour depends on the underlying database. -- Math operations involving more than one of the numeric type are always casted to either decimal or float, i.e. `10 / 3` will not return `3`, but always `3.3333...`. +- Math operations involving different numeric types are always casted to either decimal or float, i.e. `10 / 3` will not return `3`, but always `3.3333...`. - `||` is a concatenation operator and `->` a JSON traversal operator. ## Supported functions @@ -171,4 +171,4 @@ ORDER BY paid DESC SELECT address->city->state AS state FROM customers WHERE name = "CA" -``` \ No newline at end of file +```