diff -dPNur php-5.2.6/ext/pdo_odbc/php_pdo_odbc_int.h php-5.2.6-new/ext/pdo_odbc/php_pdo_odbc_int.h
--- php-5.2.6/ext/pdo_odbc/php_pdo_odbc_int.h	2007-12-31 08:20:10.000000000 +0100
+++ php-5.2.6-new/ext/pdo_odbc/php_pdo_odbc_int.h	2008-06-01 23:23:01.000000000 +0200
@@ -134,7 +134,11 @@
 typedef struct {
 	char *data;
 	unsigned long datalen;
-	long fetched_len;
+#ifdef SQLLEN
+	SQLLEN fetched_len;
+#else
+	SQLINTEGER fetched_len;
+#endif
 	SWORD	coltype;
 	char colname[128];
 	unsigned is_long;
