From 81b575536423d0631b82cc80d84f786f93cc947a Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 25 Aug 2004 12:09:05 +0000 Subject: [PATCH] try with "order by"... --- servers/slapd/back-sql/schema-map.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; -- 2.39.5