Merge pull request #20910 from LightBender/odbc-deprecate

Deprecate the old ODBC 3.5 modules in core.sys.windows.
This commit is contained in:
Adam Wilson 2025-02-25 02:14:50 -08:00 committed by GitHub
commit 53a1cc8d13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 2 deletions

View file

@ -11,13 +11,15 @@ $(RED Warning:
*/
module core.sys.windows.sql;
enum ODBCVER = 0x0400;
deprecated ("The ODBC 3.5 modules are deprecated. Please use the ODBC4 modules in the `etc.c.odbc` package."):
version (Windows):
public import core.sys.windows.sqltypes;
import core.sys.windows.windef;
enum ODBCVER = 0x0351;
enum SQL_ACCESSIBLE_PROCEDURES=20;
enum SQL_ACCESSIBLE_TABLES=19;
enum SQL_ALL_TYPES=0;

View file

@ -11,6 +11,7 @@ $(RED Warning:
*/
module core.sys.windows.sqlext;
deprecated ("The ODBC 3.5 modules are deprecated. Please use the ODBC4 modules in the `etc.c.odbc` package."):
version (Windows):
/* Conversion notes:

View file

@ -70,6 +70,10 @@ alias long ODBCINT64, SQLBIGINT;
alias ulong SQLUBIGINT;
//}
//Everything above this line may by used by odbcinst.d
//Everything below this line is deprecated
deprecated ("The ODBC 3.5 modules are deprecated. Please use the ODBC4 modules in the `etc.c.odbc` package."):
struct DATE_STRUCT {
SQLSMALLINT year;
SQLUSMALLINT month;

View file

@ -11,6 +11,7 @@ $(RED Warning:
*/
module core.sys.windows.sqlucode;
deprecated ("The ODBC 3.5 modules are deprecated. Please use the ODBC4 modules in the `etc.c.odbc` package."):
version (Windows):
version (ANSI) {} else version = Unicode;