From e04a9bbf84bba72a90be7f4b04c63e9da18ae7b0 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Fri, 27 Mar 2026 16:09:27 +0100 Subject: [PATCH 1/2] Fix typo --- doc/syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/syntax.md b/doc/syntax.md index 4251254..476d542 100644 --- a/doc/syntax.md +++ b/doc/syntax.md @@ -70,7 +70,7 @@ 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. @@ -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 +``` From ec6349290e080f06335c085ff06abd26daa39148 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Fri, 27 Mar 2026 16:09:55 +0100 Subject: [PATCH 2/2] Clarify numeric casting --- doc/syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/syntax.md b/doc/syntax.md index 476d542..d11a5e3 100644 --- a/doc/syntax.md +++ b/doc/syntax.md @@ -76,7 +76,7 @@ type-name: BOOL[EAN] | [BIG]INT | DECIMAL | FLOAT | DOUBLE | JSONB | TEXT | TIME - 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