[OpenSIPS-Devel] Possible bug in dbt_lib.c with suggested correction
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Jan 20 15:43:46 CET 2010
Hi Michael,
Have this fix resulted from troubleshooting some error ? or it is a
logical fix ?
Because the STRING and BLOB times are not really compatible. STRING is
zero terminated data while BLOB contains data (including 0), if you get
my point.
Regards,
Bogdan
Michael Schloh von Bennewitz wrote:
> Hello list,
>
> It would seem that Bogdan's recent correction relating to the BLOB
> datatype support was not complete.
>
> Index: modules/db_text/dbt_lib.c
> diff -Nau modules/db_text/dbt_lib.c.orig modules/db_text/dbt_lib.c
> --- modules/db_text/dbt_lib.c.orig 2010-01-20 11:10:07.967990871 +0100
> +++ modules/db_text/dbt_lib.c 2010-01-20 11:10:21.649138475 +0100
> @@ -440,7 +440,7 @@
> case DB_DOUBLE:
> break;
> case DB_STRING:
> - if(_t0==DB_STR)
> + if(_t0==DB_STR || _t0==DB_BLOB)
> return 0;
> case DB_STR:
> if(_t0==DB_STRING || _t0==DB_BLOB)
>
>
> The '-' and '+' indicate my suggested correction, keeping in line
> with Bogdans recent change SVN revision 6382.
>
> Regards,
> Michael
>
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Devel
mailing list