• # Pas très rapide les développeurs

    Posté par . En réponse à la dépêche Disponibilité de Qt4.1. Évalué à 2.

    J'avais envoyé un mail le 17 Novembre concernant un bug dans le plugins PostgreSQL de QT4, voici la réponse que j'ai reçut :


    Hi Greg,

    On Thursday, 17. Nov 2005 08:41 Greg Burri wrote:

    >> In line 301 of the file 'qsql_psql.cpp' you free the memory like that
    >> :
    >> QByteArray ba((const char*)data, len);
    >> -> free(data);
    >> return QVariant(ba);
    >>
    >> But it's not correct, you have to free using the function
    >> 'PQfreemem(void* ptr)' which is describe at
    >> 'http://www.postgresql.org/docs/8.1/interactive/libpq-exec.ht(...)


    Indeed. This seems to have changed from 7.3 though, the docs for 7.3
    doesn't mention PQfreemem() at all, but does mention free(). See

    http://www.postgresql.org/docs/7.3/static/libpq-exec.html

    We'll try to fix this though, thanks for reporting.

    --
    Jan Erik Hanssen
    Trolltech AS, Waldemar Thranes gate 98, NO-0175 Oslo, Norway


    ... le bug n'est pas corrigé dans la 4.1