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