mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 06:01:23 -05:00
try with "order by"...
This commit is contained in:
parent
ea6f5bad65
commit
81b5755364
1 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue