Given that undefined types are handled as character strings anyway the type
translation function can simply return the correcponding ECPGt_char type.
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/typename.c,v 1.17 2010/01/13 08:41:48 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/typename.c,v 1.18 2010/01/13 09:06:51 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
#ifdef HAVE_LONG_INT_64
return ECPGt_long;
#endif
+ /* Unhandled types always return a string */
default:
- return (-type);
+ return ECPGt_char;
}
}