mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-27 05:40:00 +03:00
strings arent always zero terminated
This commit is contained in:
parent
a24932d385
commit
c93d9af97b
1 changed files with 1 additions and 1 deletions
2
mssql.d
2
mssql.d
|
@ -58,7 +58,7 @@ class MsSql : Database {
|
|||
|
||||
enforce(returned == SQL_SUCCESS);
|
||||
|
||||
returned = SQLExecDirect(statement, cast(ubyte*)sql.ptr, SQL_NTS);
|
||||
returned = SQLExecDirect(statement, cast(ubyte*)sql.ptr, cast(SQLINTEGER) sql.length);
|
||||
if(returned != SQL_SUCCESS)
|
||||
throw new DatabaseException(getSQLError(SQL_HANDLE_STMT, statement));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue