From: Pierangelo Masarati Date: Tue, 15 Jul 2003 11:26:17 +0000 (+0000) Subject: apparently Oracle does not support AS in joins (ITS#2642) X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~818 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=53b7e6fbcf012c677734e50fe62957f836c83a33;p=openldap apparently Oracle does not support AS in joins (ITS#2642) --- diff --git a/servers/slapd/back-sql/init.c b/servers/slapd/back-sql/init.c index c1ab0572ad..2e0c282966 100644 --- a/servers/slapd/back-sql/init.c +++ b/servers/slapd/back-sql/init.c @@ -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;