From c76ee987bd5fae2846ce48882eff22eb6b0e29f9 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sat, 21 Jun 2025 10:51:40 +0300 Subject: [PATCH] fixed comment typo --- tools/dbutils/json.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dbutils/json.go b/tools/dbutils/json.go index 5d408045..72345649 100644 --- a/tools/dbutils/json.go +++ b/tools/dbutils/json.go @@ -9,7 +9,7 @@ import ( // some normalizations for non-json columns. func JSONEach(column string) string { // note: we are not using the new and shorter "if(x,y)" syntax for - // compatability with custom drivers that use older SQLite version + // compatibility with custom drivers that use older SQLite version return fmt.Sprintf( `json_each(CASE WHEN iif(json_valid([[%s]]), json_type([[%s]])='array', FALSE) THEN [[%s]] ELSE json_array([[%s]]) END)`, column, column, column, column, @@ -24,7 +24,7 @@ func JSONEach(column string) string { // Returns 0 for empty string or NULL column values. func JSONArrayLength(column string) string { // note: we are not using the new and shorter "if(x,y)" syntax for - // compatability with custom drivers that use older SQLite version + // compatibility with custom drivers that use older SQLite version return fmt.Sprintf( `json_array_length(CASE WHEN iif(json_valid([[%s]]), json_type([[%s]])='array', FALSE) THEN [[%s]] ELSE (CASE WHEN [[%s]] = '' OR [[%s]] IS NULL THEN json_array() ELSE json_array([[%s]]) END) END)`, column, column, column, column, column, column,