From 668dc2570da9ba8684bb09bff6c178c369810aba Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 28 Nov 2011 20:04:51 -0500 Subject: [PATCH] ugh --- mssql.d | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mssql.d b/mssql.d index 6b511b2..e1efac2 100644 --- a/mssql.d +++ b/mssql.d @@ -19,7 +19,7 @@ class MsSql : Database { enforce(env !is null); scope(failure) SQLFreeHandle(SQL_HANDLE_ENV, env); - SQLSetEnvAttr(env, SQL_ATTR_ODBC_VERSION, (void *) SQL_OV_ODBC3, 0); + SQLSetEnvAttr(env, SQL_ATTR_ODBC_VERSION, cast(void *) SQL_OV_ODBC3, 0); SQLAllocHandle(SQL_HANDLE_DBC, env, &conn); scope(failure) SQLFreeHandle(SQL_HANDLE_DBC, conn); @@ -51,7 +51,7 @@ class MsSql : Database { // this is passed to MsSqlResult to control SQLHSTMT statement; auto returned = SQLAllocHandle(SQL_HANDLE_STMT, conn, - &statement) + &statement); enforce(returned == SQL_SUCCESS); @@ -157,7 +157,6 @@ class MsSqlResult : ResultSet { if(ptr) goto more; } -} row ~= a; }