On Friday 04 July 2008, Noble Antony T wrote:
> Hi,
>
> yes, as you told, it was very strange for me too... :)
> [..]

Hi,

in the 1.4 trunk i changed some obselete datatype defines for mysql, this was 
not changed in the 1.3 version because of stability reasons. It could be 
possible that this causes the error you see now. I've attached a small patch, 
can you perhaps apply this, recompile and see if the error (and this log 
message) happens again?

(The patch just log a warning if some datatype conversion failed, and the 
default "STRING" is used.)

Thanks,

Henning
Index: modules/mysql/res.c
===================================================================
--- modules/mysql/res.c	(revision 4448)
+++ modules/mysql/res.c	(working copy)
@@ -103,7 +103,10 @@
 			break;
 
 		default:
-			RES_TYPES(_r)[i] = DB_STRING;
+			LM_WARN("unhandled data type column (%.*s) type id (%d), "
+					"use DB_STRING as default\n", RES_NAMES(_r)[col]->len,
+					RES_NAMES(_r)[col]->s, fields[col].type);
+			RES_TYPES(_r)[col] = DB_STRING;
 			break;
 		}		
 	}
_______________________________________________
Users mailing list
Users@lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users

Reply via email to