summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/preproc/descriptor.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2004-07-05 09:45:54 +0000
committerMichael Meskes <meskes@postgresql.org>2004-07-05 09:45:54 +0000
commit073f7312a4c0aff9030ccc52010095a260c6a7a6 (patch)
treebc64a74145ae3c68e0b6466b25610447d1db95f8 /src/interfaces/ecpg/preproc/descriptor.c
parentda09dea3e32fcc430102f6377caee24a2afe2101 (diff)
- Fixed indicator in SET DESCRIPTOR.
- Added special handling of descriptor header information. - Some code cleanup.
Diffstat (limited to 'src/interfaces/ecpg/preproc/descriptor.c')
-rw-r--r--src/interfaces/ecpg/preproc/descriptor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/preproc/descriptor.c b/src/interfaces/ecpg/preproc/descriptor.c
index 6861a91dc7f..43193364b47 100644
--- a/src/interfaces/ecpg/preproc/descriptor.c
+++ b/src/interfaces/ecpg/preproc/descriptor.c
@@ -55,6 +55,7 @@ ECPGnumeric_lvalue(FILE *f, char *name)
case ECPGt_unsigned_int:
case ECPGt_unsigned_long:
case ECPGt_unsigned_long_long:
+ case ECPGt_const:
fputs(name, yyout);
break;
default:
@@ -198,7 +199,7 @@ output_set_descr_header(char *desc_name)
{
struct assignment *results;
- fprintf(yyout, "{ ECPGset_desc_header(__LINE__, %s, &(", desc_name);
+ fprintf(yyout, "{ ECPGset_desc_header(__LINE__, %s, (int)(", desc_name);
for (results = assignments; results != NULL; results = results->next)
{
if (results->value == ECPGd_count)