diff options
author | Michael Meskes <meskes@postgresql.org> | 2000-02-18 14:34:12 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2000-02-18 14:34:12 +0000 |
commit | ab0c8c691e6f377f59d439076701ec7d3943748e (patch) | |
tree | d4b6e837e44764b829807884450b7278c5cc428f /src/interfaces/ecpg/lib/descriptor.c | |
parent | e3a97b370c2671c05ad95d6a21914c225a0cf32d (diff) | |
download | postgresql-ab0c8c691e6f377f59d439076701ec7d3943748e.tar.gz postgresql-ab0c8c691e6f377f59d439076701ec7d3943748e.zip |
*** empty log message ***
Diffstat (limited to 'src/interfaces/ecpg/lib/descriptor.c')
-rw-r--r-- | src/interfaces/ecpg/lib/descriptor.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/lib/descriptor.c b/src/interfaces/ecpg/lib/descriptor.c new file mode 100644 index 00000000000..09815b2d103 --- /dev/null +++ b/src/interfaces/ecpg/lib/descriptor.c @@ -0,0 +1,15 @@ +#include <ecpgtype.h> +#include <ecpglib.h> + +bool +ECPGget_desc_header(int lineno, char * desc_name, int *count) +{ + PGresult *ECPGresult = ECPGresultByDescriptor(lineno, desc_name); + + if (!ECPGresult) + return false; + + *count = PQnfields(ECPGresult); + ECPGlog("ECPGget-desc_header: found %d sttributes.\n", *count); + return true; +} |