]> git.sur5r.net Git - openldap/commitdiff
try with "order by"...
authorPierangelo Masarati <ando@openldap.org>
Wed, 25 Aug 2004 12:09:05 +0000 (12:09 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 25 Aug 2004 12:09:05 +0000 (12:09 +0000)
servers/slapd/back-sql/schema-map.c

index d5bd51dafe7fcd237b7a857806b662547d4d3ed2..846bfd5a22287eb002fad61f68d3559c9d3969a2 100644 (file)
@@ -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;