db_get_quote_indices (private)

 db_get_quote_indices sql

Defined in packages/acs-tcl/tcl/01-database-procs.tcl

Given a piece of SQL, return the indices of single quotes. This is useful when we do bind var substitution because we should not attempt bind var substitution inside quotes. Examples:

    sql          return value
    {'a'}           {0 2}
    {'a''}           {}
    {'a'a'a'}       {0 2 4 6}
    {a'b'c'd'}      {1 3 5 7}
    

Parameters:
sql (required)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_db_get_quote_indices db_get_quote_indices (test acs-tcl) db_get_quote_indices db_get_quote_indices test_db_get_quote_indices->db_get_quote_indices db_bind_var_quoted_p db_bind_var_quoted_p (private) db_bind_var_quoted_p->db_get_quote_indices

Testcases:
db_get_quote_indices
[ show source ]
Show another procedure: