projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a4660f
)
Change SQLDescribeCol so that it returns alias name properly.
author
Hiroshi Inoue
<inoue@tpf.co.jp>
Fri, 16 Nov 2001 05:55:10 +0000
(
05:55
+0000)
committer
Hiroshi Inoue
<inoue@tpf.co.jp>
Fri, 16 Nov 2001 05:55:10 +0000
(
05:55
+0000)
src/interfaces/odbc/results.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/odbc/results.c
b/src/interfaces/odbc/results.c
index a5cee564f77dc25c3ddfad0c2aa8ad983201f008..3bc5a5c0e1accc02794da11a90dfadfe5d21604c 100644
(file)
--- a/
src/interfaces/odbc/results.c
+++ b/
src/interfaces/odbc/results.c
@@
-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;