Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b3627d1

Browse files
author
Michael Meskes
committed
Applied Zoltan's patch to make char the default sqlda type.
Given that undefined types are handled as character strings anyway the type translation function can simply return the correcponding ECPGt_char type.
1 parent cf4d9c4 commit b3627d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/interfaces/ecpg/ecpglib/typename.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/typename.c,v 1.17 2010/01/13 08:41:48 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/typename.c,v 1.18 2010/01/13 09:06:51 meskes Exp $ */
22

33
#define POSTGRES_ECPG_INTERNAL
44
#include "postgres_fe.h"
@@ -136,7 +136,8 @@ sqlda_dynamic_type(Oid type, enum COMPAT_MODE compat)
136136
#ifdef HAVE_LONG_INT_64
137137
return ECPGt_long;
138138
#endif
139+
/* Unhandled types always return a string */
139140
default:
140-
return (-type);
141+
return ECPGt_char;
141142
}
142143
}

0 commit comments

Comments
 (0)