Content-Length: 268653 | pFad | http://github.com/postgrespro/postgres/commit/b3627d1de3ec03adea8551465351bc536f12f526

2F Applied Zoltan's patch to make char the default sqlda type. · postgrespro/postgres@b3627d1 · GitHub
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

Lines changed: 3 additions & 2 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/b3627d1de3ec03adea8551465351bc536f12f526

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy