aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/descriptor.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2000-02-25 15:26:12 +0000
committerMichael Meskes <meskes@postgresql.org>2000-02-25 15:26:12 +0000
commitc05abfb1a845e1bf5e66638ee2b83609468ebfd6 (patch)
tree0602b7943ab03918d2df23f34998f56ea1b2c1a4 /src/interfaces/ecpg/lib/descriptor.c
parent70130905d10162075d7bb3b8cc0441affee77a05 (diff)
downloadpostgresql-c05abfb1a845e1bf5e66638ee2b83609468ebfd6.tar.gz
postgresql-c05abfb1a845e1bf5e66638ee2b83609468ebfd6.zip
*** empty log message ***
Diffstat (limited to 'src/interfaces/ecpg/lib/descriptor.c')
-rw-r--r--src/interfaces/ecpg/lib/descriptor.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/lib/descriptor.c b/src/interfaces/ecpg/lib/descriptor.c
index 1b85340864c..1f0c5536f79 100644
--- a/src/interfaces/ecpg/lib/descriptor.c
+++ b/src/interfaces/ecpg/lib/descriptor.c
@@ -47,7 +47,6 @@ ECPGDynamicType(Oid type)
}
}
-#if 0
static unsigned int
ECPGDynamicType_DDT(Oid type)
{
@@ -61,7 +60,7 @@ ECPGDynamicType_DDT(Oid type)
return SQL3_DDT_ILLEGAL;
}
}
-#endif
+
bool
ECPGget_desc_header(int lineno, char * desc_name, int *count)
@@ -260,6 +259,12 @@ ECPGget_desc(int lineno, char *desc_name, int index, ...)
ECPGlog("ECPGget_desc: TYPE = %d\n", ECPGDynamicType(PQftype(ECPGresult, index)));
break;
+ case ECPGd_di_code:
+ if (!get_int_item(lineno, var, vartype, ECPGDynamicType_DDT(PQftype(ECPGresult, index))))
+ return (false);
+
+ ECPGlog("ECPGget_desc: TYPE = %d\n", ECPGDynamicType_DDT(PQftype(ECPGresult, index)));
+ break;
case ECPGd_data:
if (!get_data(ECPGresult, 0, index, lineno, vartype, ECPGt_NO_INDICATOR, var, NULL, varcharsize, offset))
return (false);