[OpenSIPS-Devel] Possible bug in dbt_lib.c with suggested correction

Michael Schloh von Bennewitz develop2009 at schloh.com
Wed Jan 20 11:17:02 CET 2010


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

-- 
Michael Schloh von Bennewitz
http://michael.schloh.com/



More information about the Devel mailing list