connection pool will still need to be configured for the NULL SQL
driver, but the defaults will work.
+rlm_sql_sybase
+--------------
+
+The ``rlm_sql_sybase`` module has been renamed to ``rlm_sql_freetds``
+and the old ``rlm_sql_freetds`` module has been removed.
+
+``rlm_sql_sybase`` used the newer ct-lib API, and ``rlm_sql_freetds``
+used and older API and was incomplete.
+
+The new ``rlm_sql_freetds`` module now also supports database
+selection on connection startup so ``use`` statements no longer
+have to be included in queries.
+
sql/dialup.conf
---------------
client_table = "nas"
# Read database-specific queries
- $INCLUDE ${modconfdir}/${.:name}/${dialect}/queries.conf
+ $INCLUDE ${modconfdir}/${.:name}/main/${dialect}/queries.conf
}
{
rlm_sql_unixodbc_conn_t *conn = c;
- DEBUG2("rlm_sql_sybase: Socket destructor called, closing socket");
+ DEBUG2("rlm_sql_unixodbc: Socket destructor called, closing socket");
if (conn->statement) {
SQLFreeStmt(conn->statement, SQL_DROP);
if (sql_state(err_handle, handle, config)) {
ERROR("rlm_sql_unixodbc: Connection failed\n");
SQLFreeHandle(SQL_HANDLE_DBC, conn->dbc);
+ conn->dbc = NULL;
SQLFreeHandle(SQL_HANDLE_ENV, conn->env);
+ conn->env = NULL;
+
return -1;
}