Commit 949af991 authored by Hiroshi Inoue's avatar Hiroshi Inoue

Change SQLDescribeCol so that it returns alias name properly.

parent 2a4660f5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment