Skip to content

Commit

Permalink
Merge pull request #20910 from LightBender/odbc-deprecate
Browse files Browse the repository at this point in the history
Deprecate the old ODBC 3.5 modules in core.sys.windows.
  • Loading branch information
LightBender authored Feb 25, 2025
2 parents beef42e + a0581f2 commit 53a1cc8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions druntime/src/core/sys/windows/sql.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions druntime/src/core/sys/windows/sqlext.d
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions druntime/src/core/sys/windows/sqltypes.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions druntime/src/core/sys/windows/sqlucode.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 53a1cc8

Please sign in to comment.