From 0220a25f0531d2bac8fc6c85bb64c1e191646234 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 4 Apr 2005 17:41:29 +0000 Subject: [PATCH] use alias name instead of column name in order by clause (ITS#3629) --- servers/slapd/back-sql/schema-map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-sql/schema-map.c b/servers/slapd/back-sql/schema-map.c index 9ce43498d3..bf87251401 100644 --- a/servers/slapd/back-sql/schema-map.c +++ b/servers/slapd/back-sql/schema-map.c @@ -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 ); -- 2.39.5