]> git.sur5r.net Git - openldap/commitdiff
apparently Oracle does not support AS in joins (ITS#2642)
authorPierangelo Masarati <ando@openldap.org>
Tue, 15 Jul 2003 11:26:17 +0000 (11:26 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 15 Jul 2003 11:26:17 +0000 (11:26 +0000)
servers/slapd/back-sql/init.c

index c1ab0572adbc42f01b24543914568f1eb6ad2d4c..2e0c2829660c8330c8e30d6dd916a2602e26f907 100644 (file)
@@ -415,7 +415,7 @@ backsql_db_open(
        bb.bb_val.bv_len = 0;
        bb.bb_len = 0;
        backsql_strfcat( &bb, "sb",
-                       "SELECT COUNT(distinct subordinates.id) FROM ldap_entries,ldap_entries AS subordinates WHERE subordinates.parent=ldap_entries.id AND ",
+                       "SELECT COUNT(distinct subordinates.id) FROM ldap_entries,ldap_entries subordinates WHERE subordinates.parent=ldap_entries.id AND ",
 
                        &si->children_cond );
        si->has_children_query = bb.bb_val.bv_val;