Browse code

- fixed compile error - MYSQL_TYPE_NEWDECIMAL date type is supported only starting with mysql 5.0, Reported by Andrew Pogrebennyk. related to opensips bug 2085158, credits to Bogdan

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4801 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 02/09/2008 08:48:31
Showing 1 changed files
... ...
@@ -92,7 +92,9 @@ int db_mysql_get_columns(const db_con_t* _h, db_res_t* _r)
92 92
 			case MYSQL_TYPE_INT24:
93 93
 			case MYSQL_TYPE_LONGLONG:
94 94
 			case MYSQL_TYPE_DECIMAL:
95
+			#if MYSQL_VERSION_ID > 49999
95 96
 			case MYSQL_TYPE_NEWDECIMAL:
97
+			#endif
96 98
 			case MYSQL_TYPE_TIMESTAMP:
97 99
 				LM_DBG("use DB_INT result type\n");
98 100
 				RES_TYPES(_r)[col] = DB_INT;