Change SQLDescribeCol so that it returns alias name properly.
This commit is contained in:
parent
2a4660f5aa
commit
949af991fc
@ -240,6 +240,9 @@ PGAPI_DescribeCol(
|
|||||||
mylog("DescribeCol: getting info for icol=%d\n", icol);
|
mylog("DescribeCol: getting info for icol=%d\n", icol);
|
||||||
|
|
||||||
fieldtype = stmt->fi[icol]->type;
|
fieldtype = stmt->fi[icol]->type;
|
||||||
|
if (stmt->fi[icol]->alias[0])
|
||||||
|
col_name = stmt->fi[icol]->alias;
|
||||||
|
else
|
||||||
col_name = stmt->fi[icol]->name;
|
col_name = stmt->fi[icol]->name;
|
||||||
precision = stmt->fi[icol]->precision;
|
precision = stmt->fi[icol]->precision;
|
||||||
scale = stmt->fi[icol]->scale;
|
scale = stmt->fi[icol]->scale;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user