]> granicus.if.org Git - php/commitdiff
Fix for bug 6073 from Sean R. Bright <elixer@erols.com>
authorRasmus Lerdorf <rasmus@php.net>
Fri, 12 Jan 2001 08:03:24 +0000 (08:03 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 12 Jan 2001 08:03:24 +0000 (08:03 +0000)
ext/mysql/php_mysql.c

index 7ffa9964591ac15eb855afd9301f329077fb9318..5e6e64e44893052567f11e19f2c3f162e52f1815 100644 (file)
@@ -73,6 +73,10 @@ static int le_result, le_link, le_plink;
 #      endif
 #endif
 
+#if MYSQL_VERSION_ID > 32133 || defined(FIELD_TYPE_TINY)
+#define MYSQL_HAS_TINY
+#endif
+
 #define MYSQL_ASSOC            1<<0
 #define MYSQL_NUM              1<<1
 #define MYSQL_BOTH             (MYSQL_ASSOC|MYSQL_NUM)
@@ -1528,7 +1532,7 @@ static char *php_mysql_get_field_name(int field_type)
                case FIELD_TYPE_VAR_STRING:
                        return "string";
                        break;
-#ifdef FIELD_TYPE_TINY
+#ifdef MYSQL_HAS_TINY
                case FIELD_TYPE_TINY:
 #endif
                case FIELD_TYPE_SHORT: