]> git.sur5r.net Git - openldap/commitdiff
fix even more stupid thing with the same issue ;)
authorDmitry Kovalev <mit@openldap.org>
Thu, 2 Nov 2000 16:29:57 +0000 (16:29 +0000)
committerDmitry Kovalev <mit@openldap.org>
Thu, 2 Nov 2000 16:29:57 +0000 (16:29 +0000)
servers/slapd/back-sql/sql-wrap.c

index dadf803da1b3038c952a14a25d709abb3bb77218..8a969f214cfd943cebed93a8d467287fc2a740a8 100644 (file)
@@ -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...