From 7c19cf6547b19daeeff0d913814cfd79446f81d4 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 7 Aug 2010 22:32:59 +0000 Subject: [PATCH] minor cleanup --- servers/slapd/back-sql/schema-map.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/servers/slapd/back-sql/schema-map.c b/servers/slapd/back-sql/schema-map.c index 0c93c55c60..87a069ba56 100644 --- a/servers/slapd/back-sql/schema-map.c +++ b/servers/slapd/back-sql/schema-map.c @@ -160,7 +160,12 @@ backsql_make_attr_query( at_map->bam_query = bb.bb_val.bv_val; #ifdef BACKSQL_COUNTQUERY - /* Query to count how many rows will be returned. */ + /* Query to count how many rows will be returned. + + SELECT COUNT(*) FROM WHERE .=? + [ AND ] + + */ BER_BVZERO( &bb.bb_val ); bb.bb_len = 0; backsql_strfcat_x( &bb, NULL, "lblbcbl", @@ -817,7 +822,7 @@ backsql_id2oc( backsql_info *bi, unsigned long id ) #ifdef BACKSQL_TRACE 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 */ tmp.bom_id = id; @@ -826,12 +831,12 @@ backsql_id2oc( backsql_info *bi, unsigned long id ) #ifdef BACKSQL_TRACE if ( res != NULL ) { - Debug( LDAP_DEBUG_TRACE, "<==oc_with_name(): " - "found name=\"%s\", id=%d\n", + Debug( LDAP_DEBUG_TRACE, "<==oc_with_id(): " + "found name=\"%s\", id=%lu\n", BACKSQL_OC_NAME( res ), res->bom_id, 0 ); } else { - Debug( LDAP_DEBUG_TRACE, "<==oc_with_name(): " - "not found\n", 0, 0, 0 ); + Debug( LDAP_DEBUG_TRACE, "<==oc_with_id(): " + "id=%lu not found\n", res->bom_id, 0, 0 ); } #endif /* BACKSQL_TRACE */ -- 2.39.5