<dtml-var> and double quotes in variable name
Hello all, I am wondering if there is any way to include double quotes in a <dtml-var> name? For instance: <dtml-var /"Date/"> assuming / escapes the double quote. I ask because the variable is referencing an SQL field name that is also a Interbase/Firebird keyword. (Date, Time, etc...). Interbase requires a pair of double quotes in such a situation. Thanks Everyone, Derek Basch __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com
Derek Basch wrote at 2003-6-2 11:06 -0700:
I am wondering if there is any way to include double quotes in a <dtml-var> name? For instance:
<dtml-var /"Date/">
assuming / escapes the double quote.
You should chose better variable names... But, there is a way: <dtml-var "_['\x22Date\x22']">
I ask because the variable is referencing an SQL field name that is also a Interbase/Firebird keyword. (Date, Time, etc...). Interbase requires a pair of double quotes in such a situation.
But that does not mean that you must include the quotes in the DTML variable names. Your options (among others): "col" = <dtml-sqlvar col type=string> or <dtml-sqltest col column="col" type=string> Dieter
participants (2)
-
Derek Basch -
Dieter Maurer