summaryrefslogtreecommitdiff
path: root/databases/openldap/patches/patch-ao
blob: 264ccbe46c717929c0e518a99cc6940f7bc670dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ao,v 1.2 2012/03/13 19:57:11 adam Exp $

SQL_NO_DATA is called SQL_NO_DATA_FOUND in ODBC versions >= 3.0,
as provided by databases/iodbc and databases/unixodbc.

--- servers/slapd/back-sql/delete.c.orig	2005-08-09 23:04:06.000000000 +0200
+++ servers/slapd/back-sql/delete.c
@@ -209,7 +209,7 @@ backsql_delete( Operation *op, SlapReply
 
 	rc = SQLExecute( sth );
 	switch ( rc ) {
-	case SQL_NO_DATA:
+	case SQL_NO_DATA_FOUND:
 		/* apparently there were no "auxiliary" objectClasses
 		 * for this entry... */
 	case SQL_SUCCESS: