Forum OpenACS Development: Re: db_multirow and db_foreach -unclobber

Collapse
Posted by Tom Jackson on

ad_page_contract turns vars with a dot in the name into arrays, so you can't put them into another array, I don't think.

I have written perhaps hundreds of complex pages with multiple db_multirow, db_1row, etc. I have yet to find a problem. What is the problem? Can we get one actual example of a problem first. We currently have an entire toolkit that somehow avoids the problem. When you rewrite the toolkit to use property:: and query::, what is a tcl page going to look like once converted?

I'm just guessing that you might end up with something like property::object_id, query::object_id and object_id on the same page. Is this correct? Of course the whole thing falls apart as soon as you have two queries with object_id in them. Please tell me how I am wrong, because I usually misunderstand the most basic concepts.