error message

This commit is contained in:
Adam D. Ruppe 2016-04-13 15:22:25 -04:00
parent b1fe71324c
commit 34e27ab449
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class MsSql : Database {
returned = SQLExecDirect(statement, cast(ubyte*)sql.ptr, SQL_NTS); returned = SQLExecDirect(statement, cast(ubyte*)sql.ptr, SQL_NTS);
if(returned != SQL_SUCCESS) if(returned != SQL_SUCCESS)
throw new DatabaseException(error()); throw new DatabaseException(getSQLError(SQL_HANDLE_STMT, statement))
return new MsSqlResult(statement); return new MsSqlResult(statement);
} }