Hi Brian,
Thanks for the response but what I didn't include was the value of $argument_value is the result of this call:
set argument_value [:dbfunction_argument_value -name $argument_name -type $type]
In this `dbfunction_argument_value` it has this logic
if {[dict exists [:typemap] $type]} {
string cat CAST(: [string tolower $name] " AS " $type )
} else {
string cat : [string tolower $name]
}
So the result ends up being multiple `:` characters preceding the variable name which is the cause of the error.
Best,
Jon