From 34e27ab449424bec5756d237bb0e086f3b95e835 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 13 Apr 2016 15:22:25 -0400 Subject: [PATCH] error message --- mssql.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mssql.d b/mssql.d index 34d57c3..589f9cf 100644 --- a/mssql.d +++ b/mssql.d @@ -60,7 +60,7 @@ class MsSql : Database { returned = SQLExecDirect(statement, cast(ubyte*)sql.ptr, SQL_NTS); if(returned != SQL_SUCCESS) - throw new DatabaseException(error()); + throw new DatabaseException(getSQLError(SQL_HANDLE_STMT, statement)) return new MsSqlResult(statement); }