Re: pgtcl has no coresponding function to PQcmdTuples

Поиск
Список
Период
Сортировка
От Gerhard Hintermayer
Тема Re: pgtcl has no coresponding function to PQcmdTuples
Дата
Msg-id as0krf$s8n$1@news.hub.org
обсуждение исходный текст
Ответ на pgtcl has no coresponding function to PQcmdTuples  (Artur Trzewik <mail@xdobry.de>)
Список pgsql-interfaces
Artur Trzewik wrote:

> Hi!
>
> I have noticed that
> pg_result $handle -numTuples
> result always 0 after DELETE and UPDATE command
>
> I have taken a look in the source code of pgtcl
> and I see

pg_execute is your friend, see below ...

>
> [...]
>
> (better were to use Tcl_GetIndexFromObj an not strcmp,
>  sprintf(interp->result,...) is also unsafe and very historical
> It should be Tcl_SetObjResult(interp, Tcl_NewIntObj(PQcmdTuples(result)));
> It do not look good
>
> By the way.
> pgtcl uses very old tcl interface (up to version 7)
> using new interface would increase speed about 30-40%.
> It also do not carry about UTF in new Tcl (new means about 2 years).
> It hurts me to see that old tcl interfaces slow up tcl (and another say it is
> slow).
>
> I can upgrade it (I have done it for mysqltcl) if there are need for it.
> I need conntact to pgtcl maintainer/autor.
>
> best regards,
> Artur Trzewik

Already done, see
http://gborg.postgresql.org/project/pgtcl/

and also the announcement at c.l.t:

http://groups.google.com/groups?q=pgtcl+group:comp.lang.tcl.*&hl=en&lr=&ie=UTF-8&safe=off&selm=1037426192.509154%40nntp1.bsj.jax.superconnect.net&rnum=1


-- 
Gerhard Hintermayer
http://www.inode.at/g.hintermayer



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: johnnnnnn
Дата:
Сообщение: Re: Difference in the actual and extracted values of timestamp
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pgtcl has no coresponding function to PQcmdTuples