mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
Merge pull request #20910 from LightBender/odbc-deprecate
Deprecate the old ODBC 3.5 modules in core.sys.windows.
This commit is contained in:
commit
53a1cc8d13
4 changed files with 10 additions and 2 deletions
|
@ -11,13 +11,15 @@ $(RED Warning:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module core.sys.windows.sql;
|
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):
|
version (Windows):
|
||||||
|
|
||||||
public import core.sys.windows.sqltypes;
|
public import core.sys.windows.sqltypes;
|
||||||
import core.sys.windows.windef;
|
import core.sys.windows.windef;
|
||||||
|
|
||||||
enum ODBCVER = 0x0351;
|
|
||||||
|
|
||||||
enum SQL_ACCESSIBLE_PROCEDURES=20;
|
enum SQL_ACCESSIBLE_PROCEDURES=20;
|
||||||
enum SQL_ACCESSIBLE_TABLES=19;
|
enum SQL_ACCESSIBLE_TABLES=19;
|
||||||
enum SQL_ALL_TYPES=0;
|
enum SQL_ALL_TYPES=0;
|
||||||
|
|
|
@ -11,6 +11,7 @@ $(RED Warning:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module core.sys.windows.sqlext;
|
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):
|
version (Windows):
|
||||||
|
|
||||||
/* Conversion notes:
|
/* Conversion notes:
|
||||||
|
|
|
@ -70,6 +70,10 @@ alias long ODBCINT64, SQLBIGINT;
|
||||||
alias ulong SQLUBIGINT;
|
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 {
|
struct DATE_STRUCT {
|
||||||
SQLSMALLINT year;
|
SQLSMALLINT year;
|
||||||
SQLUSMALLINT month;
|
SQLUSMALLINT month;
|
||||||
|
|
|
@ -11,6 +11,7 @@ $(RED Warning:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module core.sys.windows.sqlucode;
|
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 (Windows):
|
||||||
|
|
||||||
version (ANSI) {} else version = Unicode;
|
version (ANSI) {} else version = Unicode;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue