From: Dmitry Kovalev Date: Thu, 2 Nov 2000 16:29:57 +0000 (+0000) Subject: fix even more stupid thing with the same issue ;) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1663 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c77bd543bc97a97f6b87cf6409fc452336dff195;p=openldap fix even more stupid thing with the same issue ;) --- diff --git a/servers/slapd/back-sql/sql-wrap.c b/servers/slapd/back-sql/sql-wrap.c index dadf803da1..8a969f214c 100644 --- a/servers/slapd/back-sql/sql-wrap.c +++ b/servers/slapd/back-sql/sql-wrap.c @@ -65,9 +65,7 @@ RETCODE backsql_Prepare(SQLHDBC dbh,SQLHSTMT *sth,char* query,int timeout) //Debug(LDAP_DEBUG_TRACE,"==>_SQLPrepare()\n", 0,0,0); SQLGetInfo(dbh,SQL_DRIVER_NAME,drv_name,30,&len); //Debug(LDAP_DEBUG_TRACE,"_SQLPrepare(): driver name='%s'\n", drv_name,0,0); - for (i=0;i<30 && drv_name[i];i++) - drv_name[i]=ldap_pvt_str2upper(drv_name[i]); - if (!strncmp(drv_name,"SQLSRV32.DLL",30)) + if (!strncmp(ldap_pvt_str2upper(drv_name),"SQLSRV32.DLL",30)) { //stupid default result set in MS SQL Server does not support multiple active statements //on the same connection -- so we are trying to make it not to use default result set...