From c16afbf296e2c914afbc7ed699019cf02be4088e Mon Sep 17 00:00:00 2001 From: csmith1991 Date: Mon, 20 Apr 2015 10:10:44 -0400 Subject: [PATCH] update mssql.d C-like array usage was stopping compilation (at least within dub). This also needs fixed in `win32.sqltypes` --- mssql.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mssql.d b/mssql.d index 5e08571..ff7e6c8 100644 --- a/mssql.d +++ b/mssql.d @@ -155,7 +155,7 @@ class MsSqlResult : ResultSet { string a; more: - SQLCHAR buf[255]; + SQLCHAR[255] buf; if(SQLGetData(statement, cast(ushort)(i+1), SQL_CHAR, buf.ptr, 255, &ptr) != SQL_SUCCESS) throw new DatabaseException("get data: " ~ getSQLError(SQL_HANDLE_STMT, statement)); @@ -202,8 +202,8 @@ class MsSqlResult : ResultSet { private string getSQLError(short handletype, SQLHANDLE handle) { - char sqlstate[32]; - char message[256]; + char[32] sqlstate; + char[256] message; SQLINTEGER nativeerror=0; SQLSMALLINT textlen=0; auto ret = SQLGetDiagRec(handletype, handle, 1,