use alias name instead of column name in order by clause (ITS#3629)

This commit is contained in:
Pierangelo Masarati 2005-04-04 17:41:29 +00:00
parent e350d3aebd
commit 0220a25f05

View File

@ -129,7 +129,7 @@ backsql_make_attr_query(
backsql_strfcat( &bb, "lbl",
(ber_len_t)STRLENOF( " ORDER BY " BACKSQL_ALIASING_QUOTE ),
" ORDER BY " BACKSQL_ALIASING_QUOTE,
&at_map->bam_sel_expr,
&at_map->bam_ad->ad_cname,
(ber_len_t)STRLENOF( BACKSQL_ALIASING_QUOTE ),
BACKSQL_ALIASING_QUOTE );