From 60d915b23dbea2e6acc29effc1a747e95633bfbe Mon Sep 17 00:00:00 2001 From: Adam Wilson Date: Sun, 23 Feb 2025 15:46:01 -0800 Subject: [PATCH] Deprecate the old ODBC 3.5 modules in core.sys.windows. --- druntime/src/core/sys/windows/sql.d | 2 ++ druntime/src/core/sys/windows/sqlext.d | 2 ++ druntime/src/core/sys/windows/sqltypes.d | 2 ++ druntime/src/core/sys/windows/sqlucode.d | 2 ++ 4 files changed, 8 insertions(+) diff --git a/druntime/src/core/sys/windows/sql.d b/druntime/src/core/sys/windows/sql.d index 9054ce589e..7ffcc86141 100644 --- a/druntime/src/core/sys/windows/sql.d +++ b/druntime/src/core/sys/windows/sql.d @@ -11,6 +11,8 @@ $(RED Warning: */ module core.sys.windows.sql; +deprecated("The ODBC 3.5 modules are deprecated. Please use the ODBC4 module in the etc.c.odbc package."); +deprecated: version (Windows): public import core.sys.windows.sqltypes; diff --git a/druntime/src/core/sys/windows/sqlext.d b/druntime/src/core/sys/windows/sqlext.d index b871fbbbb8..12e9d05d68 100644 --- a/druntime/src/core/sys/windows/sqlext.d +++ b/druntime/src/core/sys/windows/sqlext.d @@ -11,6 +11,8 @@ $(RED Warning: */ module core.sys.windows.sqlext; +deprecated("The ODBC 3.5 modules are deprecated. Please use the ODBC4 module in the etc.c.odbc package."); +deprecated: version (Windows): /* Conversion notes: diff --git a/druntime/src/core/sys/windows/sqltypes.d b/druntime/src/core/sys/windows/sqltypes.d index 04fac6bac6..1d198dba9f 100644 --- a/druntime/src/core/sys/windows/sqltypes.d +++ b/druntime/src/core/sys/windows/sqltypes.d @@ -11,6 +11,8 @@ $(RED Warning: */ module core.sys.windows.sqltypes; +deprecated("The ODBC 3.5 modules are deprecated. Please use the ODBC4 module in the etc.c.odbc package."); +deprecated: version (Windows): version (ANSI) {} else version = Unicode; diff --git a/druntime/src/core/sys/windows/sqlucode.d b/druntime/src/core/sys/windows/sqlucode.d index e7ae1d276b..67a92bee60 100644 --- a/druntime/src/core/sys/windows/sqlucode.d +++ b/druntime/src/core/sys/windows/sqlucode.d @@ -11,6 +11,8 @@ $(RED Warning: */ module core.sys.windows.sqlucode; +deprecated("The ODBC 3.5 modules are deprecated. Please use the ODBC4 module in the etc.c.odbc package."); +deprecated: version (Windows): version (ANSI) {} else version = Unicode;