I got this weird sintax error when i use
db_exec_plsql isert_contact { *SQL }
but the error just disappear when i use
db_dml insert_contact { *SQL* }
is there any query sintax special changing when i switch db commands?
the error is bellow:
Database operation "dml" failed (exception ERROR, "ERROR: syntax error at or near "*"
LINE 2: *SQL
^
")
while executing
"ns_db dml $db "create function $function_name () returns varchar as '
[DoubleApos $proc_sql]
' language 'p..."
invoked from within
"db_exec_plpgsql $db $full_statement_name $sql $statement_name"
invoked from within
"if {[regexp -nocase -- {^\s*select} $test_sql match]} {
# ns_log Debug "PLPGSQL: bypassed anon function"
set selection..."
("uplevel" body line 6)