Re: ecpg bug and patch - Mailing list pgsql-hackers

From Adriaan Joubert
Subject Re: ecpg bug and patch
Date
Msg-id 3AC1B0CB.D106BC3E@albourne.com
Whole thread Raw
In response to ecpg bug and patch  (Adriaan Joubert <a.joubert@albourne.com>)
Responses Re: ecpg bug and patch  (Michael Meskes <meskes@postgresql.org>)
List pgsql-hackers
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
 }

pgsql-hackers by date:

Previous
From: Adriaan Joubert
Date:
Subject: ecpg bug and patch
Next
From: Pete Forman
Date:
Subject: Re: RC1 core dumps in initdb on Solaris 2.6