Differences From Artifact [96280391078c825f]:
- File
src/win32/sqltypes.d
- 2015-04-21 10:46:55 - part of checkin [4e2933c620] on branch trunk - Rebased to the latest verson dmd 2.067. Not yet verified the outcome. (user: kinaba) [annotate]
To Artifact [e13dc9b878fc2ab3]:
- File
src/win32/sqltypes.d
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
The problem was __gshared. Replacing it with TLS fixed the issue. Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.
(user: kinaba) [annotate]
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
26 26 alias PVOID PTR, HENV, HDBC, HSTMT, SQLPOINTER;
27 27 alias UCHAR SQLCHAR;
28 28 // #ifndef _WIN64
29 29 alias UDWORD SQLUINTEGER;
30 30 // #endif
31 31
32 32 //static if (ODBCVER >= 0x0300) {
33 -alias HANDLE SQLHANDLE;
33 +alias TypeDef!(HANDLE) SQLHANDLE;
34 34 alias SQLHANDLE SQLHENV, SQLHDBC, SQLHSTMT, SQLHDESC;
35 35 /*
36 36 } else {
37 37 alias void* SQLHENV;
38 38 alias void* SQLHDBC;
39 39 alias void* SQLHSTMT;
40 40 }
................................................................................
132 132
133 133 const SQL_MAX_NUMERIC_LEN = 16;
134 134
135 135 struct SQL_NUMERIC_STRUCT {
136 136 SQLCHAR precision;
137 137 SQLSCHAR scale;
138 138 SQLCHAR sign;
139 - SQLCHAR val[SQL_MAX_NUMERIC_LEN];
139 + SQLCHAR[SQL_MAX_NUMERIC_LEN] val;
140 140 }
141 141 // } ODBCVER >= 0x0300
142 142 alias GUID SQLGUID;