Ooops, patch was the wrong way round. Here is a better one.
Sorry,
Adriaandiff -Naur postgresql-7.1RC1.orig/src/interfaces/ecpg/include/ecpgtype.h
postgresql-7.1RC1/src/interfaces/ecpg/include/ecpgtype.h
--- postgresql-7.1RC1.orig/src/interfaces/ecpg/include/ecpgtype.h Sun Jan 7 04:03:39 2001
+++ postgresql-7.1RC1/src/interfaces/ecpg/include/ecpgtype.h Wed Mar 28 12:36:05 2001
@@ -70,7 +70,7 @@
ECPGd_EODT /* End of descriptor types. */
};
-#define IS_SIMPLE_TYPE(type) ((type) >= ECPGt_char && (type) <= ECPGt_varchar2)
+#define IS_SIMPLE_TYPE(type) ((type) >= ECPGt_char && (type) <= ECPGt_varchar2 || (type)>=ECPGt_long_long)
#ifdef __cplusplus
}