From b4bc0720304dffd8b9064a22ace122e29a4f8b29 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Fri, 21 Dec 2018 14:06:53 +0100 Subject: [PATCH] Improve function help for sqlite_fetch_and_increment --- resources/function_help/json/sqlite_fetch_and_increment | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/function_help/json/sqlite_fetch_and_increment b/resources/function_help/json/sqlite_fetch_and_increment index 6ccf8badd957..1ded3beaa895 100644 --- a/resources/function_help/json/sqlite_fetch_and_increment +++ b/resources/function_help/json/sqlite_fetch_and_increment @@ -8,9 +8,9 @@ {"arg":"id_field", "description":"Name of the field that contains the current value"}, {"arg":"filter_attribute", "description":"Name the field that contains a unique identifier for this sequence. Must have a UNIQUE index."}, {"arg":"filter_value", "description":"Name of the sequence to use."}, - {"arg":"default_values", "description":"Map with default values for additional columns on the table. The values need to be fully quoted. Functions are allowed."} + {"arg":"default_values", "description":"Map with default values for additional columns on the table. The values need to be fully quoted. Functions are allowed.", "optional": true} ], "examples": [ - { "expression":"sqlite_fetch_and_increment(layer_property(@layer, 'path'), 'sequence_table', 'last_unique_id', 'sequence_id', 'global', map('last_change','date(''now'')','user',@user_account_name))", "returns":"0"} + { "expression":"sqlite_fetch_and_increment(layer_property(@layer, 'path'), 'sequence_table', 'last_unique_id', 'sequence_id', 'global', map('last_change','date(''now'')','user','''' || @user_account_name || ''''))", "returns":"0"} ] }