diff options
Diffstat (limited to 'src/interfaces/ecpg/include/sqlda-native.h')
-rw-r--r-- | src/interfaces/ecpg/include/sqlda-native.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/include/sqlda-native.h b/src/interfaces/ecpg/include/sqlda-native.h index 05cdd712c74..d8a6669ef40 100644 --- a/src/interfaces/ecpg/include/sqlda-native.h +++ b/src/interfaces/ecpg/include/sqlda-native.h @@ -1,11 +1,19 @@ /* - * $PostgreSQL: pgsql/src/interfaces/ecpg/include/sqlda-native.h,v 1.1 2010/01/05 16:38:23 meskes Exp $ + * $PostgreSQL: pgsql/src/interfaces/ecpg/include/sqlda-native.h,v 1.2 2010/01/06 15:10:21 meskes Exp $ */ #ifndef ECPG_SQLDA_NATIVE_H #define ECPG_SQLDA_NATIVE_H -#include "postgres_fe.h" +/* + * Maximum length for identifiers (e.g. table names, column names, + * function names). Names actually are limited to one less byte than this, + * because the length must include a trailing zero byte. + * + * This should be at least as much as NAMEDATALEN of the database the + * applications run against. + */ +#define NAMEDATALEN 64 struct sqlname { |