mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-16 00:58:02 -05:00
minor cleanup
This commit is contained in:
parent
41fe685d35
commit
7c19cf6547
1 changed files with 11 additions and 6 deletions
|
|
@ -160,7 +160,12 @@ backsql_make_attr_query(
|
||||||
at_map->bam_query = bb.bb_val.bv_val;
|
at_map->bam_query = bb.bb_val.bv_val;
|
||||||
|
|
||||||
#ifdef BACKSQL_COUNTQUERY
|
#ifdef BACKSQL_COUNTQUERY
|
||||||
/* Query to count how many rows will be returned. */
|
/* Query to count how many rows will be returned.
|
||||||
|
|
||||||
|
SELECT COUNT(*) FROM <from_tbls> WHERE <keytbl>.<keycol>=?
|
||||||
|
[ AND <join_where> ]
|
||||||
|
|
||||||
|
*/
|
||||||
BER_BVZERO( &bb.bb_val );
|
BER_BVZERO( &bb.bb_val );
|
||||||
bb.bb_len = 0;
|
bb.bb_len = 0;
|
||||||
backsql_strfcat_x( &bb, NULL, "lblbcbl",
|
backsql_strfcat_x( &bb, NULL, "lblbcbl",
|
||||||
|
|
@ -817,7 +822,7 @@ backsql_id2oc( backsql_info *bi, unsigned long id )
|
||||||
|
|
||||||
#ifdef BACKSQL_TRACE
|
#ifdef BACKSQL_TRACE
|
||||||
Debug( LDAP_DEBUG_TRACE, "==>oc_with_id(): "
|
Debug( LDAP_DEBUG_TRACE, "==>oc_with_id(): "
|
||||||
"searching for objectclass with id='%d'\n", id, 0, 0 );
|
"searching for objectclass with id=%lu\n", id, 0, 0 );
|
||||||
#endif /* BACKSQL_TRACE */
|
#endif /* BACKSQL_TRACE */
|
||||||
|
|
||||||
tmp.bom_id = id;
|
tmp.bom_id = id;
|
||||||
|
|
@ -826,12 +831,12 @@ backsql_id2oc( backsql_info *bi, unsigned long id )
|
||||||
|
|
||||||
#ifdef BACKSQL_TRACE
|
#ifdef BACKSQL_TRACE
|
||||||
if ( res != NULL ) {
|
if ( res != NULL ) {
|
||||||
Debug( LDAP_DEBUG_TRACE, "<==oc_with_name(): "
|
Debug( LDAP_DEBUG_TRACE, "<==oc_with_id(): "
|
||||||
"found name=\"%s\", id=%d\n",
|
"found name=\"%s\", id=%lu\n",
|
||||||
BACKSQL_OC_NAME( res ), res->bom_id, 0 );
|
BACKSQL_OC_NAME( res ), res->bom_id, 0 );
|
||||||
} else {
|
} else {
|
||||||
Debug( LDAP_DEBUG_TRACE, "<==oc_with_name(): "
|
Debug( LDAP_DEBUG_TRACE, "<==oc_with_id(): "
|
||||||
"not found\n", 0, 0, 0 );
|
"id=%lu not found\n", res->bom_id, 0, 0 );
|
||||||
}
|
}
|
||||||
#endif /* BACKSQL_TRACE */
|
#endif /* BACKSQL_TRACE */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue