]> granicus.if.org Git - php/commitdiff
Bug 29058 (patch submitted by bug reporter)
authorDan Kalowsky <kalowsky@php.net>
Thu, 15 Jul 2004 15:09:12 +0000 (15:09 +0000)
committerDan Kalowsky <kalowsky@php.net>
Thu, 15 Jul 2004 15:09:12 +0000 (15:09 +0000)
ext/odbc/php_odbc.c

index 4d0c00c4caf22ecc83d33c923b2f9547a0251187..0908ce6a5bdab4abc024f46e84eff186564f61c1 100644 (file)
@@ -3038,7 +3038,7 @@ PHP_FUNCTION(odbc_foreignkeys)
                fschema = Z_STRVAL_PP(pv_fschema);
                convert_to_string_ex(pv_ftable);
                ftable = Z_STRVAL_PP(pv_ftable);
-#ifdef HAVE_DBMAKER
+#if defined(HAVE_DBMAKER) || defined (HAVE_IBMDB2)
 #define EMPTY_TO_NULL(xstr) \
        if ((int)strlen((xstr)) == 0) (xstr) = NULL