diff options
author | Michael Meskes <meskes@postgresql.org> | 2010-02-04 09:41:35 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2010-02-04 09:41:35 +0000 |
commit | a96ad2fc7471b9abea0697b79ff3706c618d39f2 (patch) | |
tree | 687af00332f4c80aa9f3c3fa291ead0804437322 /src/interfaces/ecpg/ecpglib/extern.h | |
parent | c00353aa6c40f90550d6e6fa2ab2cb68f472e401 (diff) |
Streamlined array handling code in libecpg a little bit, in the process fixing yet another incorrect log output.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/extern.h')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/extern.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/extern.h b/src/interfaces/ecpg/ecpglib/extern.h index a07bf406b14..e2e61484c48 100644 --- a/src/interfaces/ecpg/ecpglib/extern.h +++ b/src/interfaces/ecpg/ecpglib/extern.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/extern.h,v 1.37 2010/01/15 10:44:34 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/extern.h,v 1.38 2010/02/04 09:41:34 meskes Exp $ */ #ifndef _ECPG_LIB_EXTERN_H #define _ECPG_LIB_EXTERN_H @@ -27,6 +27,8 @@ enum ARRAY_TYPE ECPG_ARRAY_ERROR, ECPG_ARRAY_NOT_SET, ECPG_ARRAY_ARRAY, ECPG_ARRAY_VECTOR, ECPG_ARRAY_NONE }; +#define ECPG_IS_ARRAY(X) ((X) == ECPG_ARRAY_ARRAY || (X) == ECPG_ARRAY_VECTOR) + /* A generic varchar type. */ struct ECPGgeneric_varchar { |