I get it now. You add a comma every time and then just pull the last
character off to fix the extra one on the end. That is what is eating the
end of my reference. I see it now in the table template...
The problem is that even though the trailing space fixed the eaten paren I
still have that extra comma earlier in the statement so the sql won't
create a table.
What if you did something like:
#foreach($col in $columns)
#if($coldefinition)
$coldefinition,
#end
#set($coldefinition = #sql_for($col))
#end
$coldefinition
Seems like that would put a comma after every column definition except for
the last one. You could skip the string cutting bit then.
Alternately, what is messing stuff up right now is just a comment, right?
You could just remove that.
Will
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>