[OpenSER-Devel] TEXT vs BLOB data in database modules

Henning Westerholt henning.westerholt at 1und1.de
Mon Apr 21 10:44:36 CEST 2008


On Saturday 19 April 2008, Daniel-Constantin Mierla wrote:
> for DB_STRING it has to be checked if all drivers return a null
> terminated string, as some just set reference to the value in the
> library result and not clone the value.
>
> Otherwise, I would say that the most suitable type in DB api right now
> is DB_STR. DB_BLOB is fine as well, mapping over str structure, just a
> bit misleading for the potential new developers :-)

Hi Daniel,

do you suggest a conversion of all DB_STRING usage in the drivers to DB_STR? I 
think this is another issue, appart from the DB_BLOB problems i'm trying to 
address now. At the moment db_mysql and db_postgres only returns DB_STRING.

Cheers,

Henning



More information about the Devel mailing list