From: Pierangelo Masarati Date: Wed, 25 Aug 2004 12:09:05 +0000 (+0000) Subject: try with "order by"... X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~646 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81b575536423d0631b82cc80d84f786f93cc947a;p=openldap try with "order by"... --- diff --git a/servers/slapd/back-sql/schema-map.c b/servers/slapd/back-sql/schema-map.c index d5bd51dafe..846bfd5a22 100644 --- a/servers/slapd/back-sql/schema-map.c +++ b/servers/slapd/back-sql/schema-map.c @@ -142,6 +142,18 @@ backsql_make_attr_query( &at_map->bam_join_where ); } +#ifdef BACKSQL_ALIASING_QUOTE + backsql_strfcat( &bb, "lcbc", + (ber_len_t)STRLENOF( " ORDER BY " ), " ORDER BY ", + BACKSQL_ALIASING_QUOTE, + &at_map->bam_sel_expr, + BACKSQL_ALIASING_QUOTE ); +#else /* ! BACKSQL_ALIASING_QUOTE */ + backsql_strfcat( &bb, "lb", + (ber_len_t)STRLENOF( " ORDER BY " ), " ORDER BY ", + &at_map->bam_sel_expr ); +#endif /* ! BACKSQL_ALIASING_QUOTE */ + at_map->bam_query = bb.bb_val.bv_val; return 0;