> The query string is allocated, strings escaped, parameters replaced:

add to that:

dbresult *dbquery(char *query, void *params, void *paramtypes)
{
        if (backend_has_binary)
                binary_db_query(query,params,paramtypes);
        else
                text_db_query(query,params,paramtypes)
}

use ? as placeholders... replace them with the backend specific
placeholders for the binary protocols, and with properly escaped
parameters for the plaintext protocols.

... just a thought!

Reply via email to