xowiki::hstore::double_quote (public)

 xowiki::hstore::double_quote value

Defined in packages/xowiki/tcl/xowiki-utility-procs.tcl

From hstore manual: "Double-quote keys and values that include whitespace, commas, =s or >s. To include a double quote or a backslash in a key or value, escape it with a backslash." https://www.postgresql.org/docs/current/hstore.html

Parameters:
value
Returns:
double_quoted value as appropriate for hstore

Partial Call Graph (max 5 caller/called nodes):
%3 test_api_hstore api_hstore (test xowiki) xowiki::hstore::double_quote xowiki::hstore::double_quote test_api_hstore->xowiki::hstore::double_quote test_xowiki_test_cases xowiki_test_cases (test xowiki) test_xowiki_test_cases->xowiki::hstore::double_quote xowiki::FormPage proc filter_expression xowiki::FormPage proc filter_expression xowiki::FormPage proc filter_expression->xowiki::hstore::double_quote xowiki::hstore::dict_as_hkey xowiki::hstore::dict_as_hkey (public) xowiki::hstore::dict_as_hkey->xowiki::hstore::double_quote

Testcases:
api_hstore, xowiki_test_cases
Source code:
    if {[regexp {[\s,\"\'\\=>]} $value]} {
      return \"[string map [list \" \\\" \\ \\\\ ' ''] $value]\"
    }
    return $value
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: