Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb3627d1

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 typetranslation function can simply return the correcponding ECPGt_char type.
1 parentcf4d9c4 commitb3627d1

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/1308:41:48 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/typename.c,v 1.18 2010/01/1309:06:51 meskes Exp $ */
22

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp