mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
minor improvements
This commit is contained in:
parent
a637926bf2
commit
c04bebe750
@ -163,6 +163,12 @@ backsql_delete( Operation *op, SlapReply *rs )
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* avl_apply ... */
|
||||
rs->sr_err = backsql_delete_all_attrs( op, rs, dbh, &e_id, oc );
|
||||
if ( rs->sr_err != LDAP_SUCCESS ) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
rc = backsql_Prepare( dbh, &sth, oc->bom_delete_proc, 0 );
|
||||
if ( rc != SQL_SUCCESS ) {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
@ -206,12 +212,6 @@ backsql_delete( Operation *op, SlapReply *rs )
|
||||
}
|
||||
SQLFreeStmt( sth, SQL_DROP );
|
||||
|
||||
/* avl_apply ... */
|
||||
rs->sr_err = backsql_delete_all_attrs( op, rs, dbh, &e_id, oc );
|
||||
if ( rs->sr_err != LDAP_SUCCESS ) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* delete "auxiliary" objectClasses, if any... */
|
||||
rc = backsql_Prepare( dbh, &sth, bi->delobjclasses_query, 0 );
|
||||
if ( rc != SQL_SUCCESS ) {
|
||||
|
@ -69,7 +69,8 @@ backsql_modrdn( Operation *op, SlapReply *rs )
|
||||
rs->sr_err = backsql_dn2id( bi, &e_id, dbh, &op->o_req_ndn );
|
||||
if ( rs->sr_err != LDAP_SUCCESS ) {
|
||||
Debug( LDAP_DEBUG_TRACE, " backsql_modrdn(): "
|
||||
"could not lookup entry id\n", 0, 0, 0 );
|
||||
"could not lookup entry id (%d)\n",
|
||||
rs->sr_err, 0, 0 );
|
||||
rs->sr_text = ( rs->sr_err == LDAP_OTHER )
|
||||
? "SQL-backend error" : NULL;
|
||||
send_ldap_result( op, rs );
|
||||
|
Loading…
Reference in New Issue
Block a user