Forum OpenACS Q&A: Response to Pgdriver for windows NT

Collapse
Posted by Andrei Popov on
What is interesting is that this way:
set pool "pg_flex"
set db [ns_db gethandle $pool]
set cnt [ns_set get [ns_db 0or1row $db "select count(*) from coa"] count]
ns_write "Retrieving $cnt records"
it works fine... Why does it not work with ns_db select?..