mirror of https://github.com/adamdruppe/arsd.git
error message
This commit is contained in:
parent
b1fe71324c
commit
34e27ab449
2
mssql.d
2
mssql.d
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue