Browse Source

conditionalize MYSQL_TYPE_NEWDECIMAL

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@36682 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 16 years ago
parent
commit
1d504387e7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      db/drivers/mysql/describe.c

+ 2 - 0
db/drivers/mysql/describe.c

@@ -177,7 +177,9 @@ void field_info(MYSQL_FIELD * field, int *sqltype, int *length)
 	break;
 
     case MYSQL_TYPE_DECIMAL:
+#ifdef MYSQL_TYPE_NEWDECIMAL
     case MYSQL_TYPE_NEWDECIMAL:
+#endif
 	*sqltype = DB_SQL_TYPE_DECIMAL;
 	break;