From: Pierangelo Masarati Date: Tue, 24 Aug 2004 15:16:06 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~655 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aae3c074f1270e8b35567be108bb2d11a4a666ce;p=openldap cleanup --- diff --git a/configure b/configure index 0a6492048a..a616d0c7d9 100755 --- a/configure +++ b/configure @@ -20951,14 +20951,14 @@ fi done - echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6 -echo "configure:20956: checking for SQLDriverConnect in -liodbc" >&5 -ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'` + echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6 +echo "configure:20956: checking for SQLDriverConnect in -lodbc" >&5 +ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'` if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-liodbc $LIBS" +LIBS="-lodbc $LIBS" cat > conftest.$ac_ext <&6 - have_iodbc=yes + have_odbc=yes else echo "$ac_t""no" 1>&6 -have_iodbc=no +have_odbc=no fi - if test $have_iodbc = yes ; then - ol_link_sql="-liodbc" + if test $have_odbc = yes ; then + ol_link_sql="-lodbc" else echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6 echo "configure:21000: checking for SQLDriverConnect in -lodbc" >&5 diff --git a/servers/slapd/back-sql/sql-wrap.c b/servers/slapd/back-sql/sql-wrap.c index 7709f817de..292c63c3ce 100644 --- a/servers/slapd/back-sql/sql-wrap.c +++ b/servers/slapd/back-sql/sql-wrap.c @@ -328,8 +328,10 @@ backsql_open_db_conn( backsql_info *si, unsigned long ldap_cid, backsql_db_conn return LDAP_UNAVAILABLE; } - rc = SQLConnect( dbc->dbh, si->dbname, SQL_NTS, si->dbuser, - SQL_NTS, si->dbpasswd, SQL_NTS ); + rc = SQLConnect( dbc->dbh, + (SQLCHAR*)si->dbname, SQL_NTS, + (SQLCHAR*)si->dbuser, SQL_NTS, + (SQLCHAR*)si->dbpasswd, SQL_NTS ); if ( rc != SQL_SUCCESS ) { Debug( LDAP_DEBUG_TRACE, "backsql_open_db_conn: " "SQLConnect() to database \"%s\" as user \"%s\" " diff --git a/servers/slapd/back-sql/util.c b/servers/slapd/back-sql/util.c index d70b884da3..f3de6685e7 100644 --- a/servers/slapd/back-sql/util.c +++ b/servers/slapd/back-sql/util.c @@ -59,7 +59,7 @@ char backsql_id_query[] = "SELECT id,keyval,oc_map_id FROM ldap_entries WHERE "; char backsql_def_concat_func[] = "CONCAT(?,?)"; /* TimesTen */ -char backsql_check_dn_ru_query[] = "SELECT dn_ru from ldap_entries"; +char backsql_check_dn_ru_query[] = "SELECT dn_ru FROM ldap_entries"; struct berbuf * backsql_strcat( struct berbuf *dest, ... )