Products Support Documentation Download
sqltypes.h File Reference

Header for the types used in ODBC. More...

#include "rdmtypes.h"
Include dependency graph for sqltypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tagDATE_STRUCT
 
struct  tagTIME_STRUCT
 
struct  tagTIMESTAMP_STRUCT
 
struct  tagSQL_YEAR_MONTH
 
struct  tagSQL_DAY_SECOND
 
struct  tagSQL_INTERVAL_STRUCT
 
struct  tagSQL_NUMERIC_STRUCT
 
struct  tagSQLGUID
 

Macros

#define ODBCVER   0x0351
 
#define SQL_API   EXTERNAL_FCN
 
#define SQL_API_PTR   EXTERNAL_FCN_PTR
 
#define BOOL   int32_t
 
#define SQLLEN   SQLINTEGER
 
#define SQLULEN   SQLUINTEGER
 
#define SQLSETPOSIROW   SQLUSMALLINT
 
#define __SQLDATE
 
#define SQL_MAX_NUMERIC_LEN   16
 
#define ODBCINT64   int64_t
 
#define ODBCUINT64   uint64_t
 

Typedefs

typedef signed char SCHAR
 
typedef SCHAR SQLSCHAR
 
typedef uint8_t SQLCHAR
 
typedef int16_t SQLSMALLINT
 
typedef uint16_t SQLUSMALLINT
 
typedef int32_t SQLINTEGER
 
typedef uint32_t SQLUINTEGER
 
typedef double SQLDOUBLE
 
typedef double SQLFLOAT
 
typedef uint8_t SQLNUMERIC
 
typedef float SQLREAL
 
typedef uint8_t SQLTIME
 
typedef uint8_t SQLTIMESTAMP
 
typedef uint8_t SQLVARCHAR
 
typedef void * SQLPOINTER
 
typedef int16_t SQLRETURN
 SQL API Return Codes. More...
 
typedef wchar_t SQLWCHAR
 
typedef SQLUINTEGER BOOKMARK
 
typedef const void * SQLHANDLE
 
typedef HWND SQLHWND
 
typedef int16_t RETCODE
 
typedef struct tagDATE_STRUCT DATE_STRUCT
 
typedef DATE_STRUCT SQL_DATE_STRUCT
 
typedef struct tagTIME_STRUCT TIME_STRUCT
 
typedef TIME_STRUCT SQL_TIME_STRUCT
 
typedef struct tagTIMESTAMP_STRUCT TIMESTAMP_STRUCT
 
typedef TIMESTAMP_STRUCT SQL_TIMESTAMP_STRUCT
 
typedef struct tagSQL_YEAR_MONTH SQL_YEAR_MONTH_STRUCT
 
typedef struct tagSQL_DAY_SECOND SQL_DAY_SECOND_STRUCT
 
typedef struct tagSQL_INTERVAL_STRUCT SQL_INTERVAL_STRUCT
 
typedef struct tagSQL_NUMERIC_STRUCT SQL_NUMERIC_STRUCT
 
typedef int64_t SQLBIGINT
 
typedef uint64_t SQLUBIGINT
 
typedef struct tagSQLGUID SQLGUID
 

Enumerations

enum  SQLINTERVAL {
  SQL_IS_YEAR = 1, SQL_IS_MONTH = 2, SQL_IS_DAY = 3, SQL_IS_HOUR = 4,
  SQL_IS_MINUTE = 5, SQL_IS_SECOND = 6, SQL_IS_YEAR_TO_MONTH = 7, SQL_IS_DAY_TO_HOUR = 8,
  SQL_IS_DAY_TO_MINUTE = 9, SQL_IS_DAY_TO_SECOND = 10, SQL_IS_HOUR_TO_MINUTE = 11, SQL_IS_HOUR_TO_SECOND = 12,
  SQL_IS_MINUTE_TO_SECOND = 13
}
 

Detailed Description

Header for the types used in ODBC.

Definition in file sqltypes.h.

Macro Definition Documentation

◆ __SQLDATE

#define __SQLDATE

Definition at line 142 of file sqltypes.h.

◆ BOOL

#define BOOL   int32_t

Definition at line 47 of file sqltypes.h.

◆ ODBCINT64

#define ODBCINT64   int64_t

Definition at line 235 of file sqltypes.h.

◆ ODBCUINT64

#define ODBCUINT64   uint64_t

Definition at line 236 of file sqltypes.h.

◆ ODBCVER

#define ODBCVER   0x0351

Definition at line 20 of file sqltypes.h.

◆ SQL_API

#define SQL_API   EXTERNAL_FCN

Definition at line 43 of file sqltypes.h.

◆ SQL_API_PTR

#define SQL_API_PTR   EXTERNAL_FCN_PTR

Definition at line 44 of file sqltypes.h.

◆ SQL_MAX_NUMERIC_LEN

#define SQL_MAX_NUMERIC_LEN   16

Definition at line 223 of file sqltypes.h.

◆ SQLLEN

#define SQLLEN   SQLINTEGER

Definition at line 91 of file sqltypes.h.

◆ SQLSETPOSIROW

#define SQLSETPOSIROW   SQLUSMALLINT

Definition at line 93 of file sqltypes.h.

◆ SQLULEN

#define SQLULEN   SQLUINTEGER

Definition at line 92 of file sqltypes.h.

Typedef Documentation

◆ BOOKMARK

Definition at line 96 of file sqltypes.h.

◆ DATE_STRUCT

typedef struct tagDATE_STRUCT DATE_STRUCT

◆ RETCODE

typedef int16_t RETCODE

Definition at line 136 of file sqltypes.h.

◆ SCHAR

typedef signed char SCHAR

Definition at line 50 of file sqltypes.h.

◆ SQL_DATE_STRUCT

Definition at line 151 of file sqltypes.h.

◆ SQL_DAY_SECOND_STRUCT

◆ SQL_INTERVAL_STRUCT

◆ SQL_NUMERIC_STRUCT

◆ SQL_TIME_STRUCT

Definition at line 160 of file sqltypes.h.

◆ SQL_TIMESTAMP_STRUCT

Definition at line 173 of file sqltypes.h.

◆ SQL_YEAR_MONTH_STRUCT

◆ SQLBIGINT

typedef int64_t SQLBIGINT

Definition at line 237 of file sqltypes.h.

◆ SQLCHAR

typedef uint8_t SQLCHAR

Definition at line 52 of file sqltypes.h.

◆ SQLDOUBLE

typedef double SQLDOUBLE

Definition at line 57 of file sqltypes.h.

◆ SQLFLOAT

typedef double SQLFLOAT

Definition at line 58 of file sqltypes.h.

◆ SQLGUID

typedef struct tagSQLGUID SQLGUID

◆ SQLHANDLE

typedef const void* SQLHANDLE

Definition at line 98 of file sqltypes.h.

◆ SQLHWND

typedef HWND SQLHWND

Definition at line 111 of file sqltypes.h.

◆ SQLINTEGER

typedef int32_t SQLINTEGER

Definition at line 55 of file sqltypes.h.

◆ SQLNUMERIC

typedef uint8_t SQLNUMERIC

Definition at line 59 of file sqltypes.h.

◆ SQLPOINTER

typedef void* SQLPOINTER

Definition at line 64 of file sqltypes.h.

◆ SQLREAL

typedef float SQLREAL

Definition at line 60 of file sqltypes.h.

◆ SQLRETURN

typedef int16_t SQLRETURN

SQL API Return Codes.

Return code Description
SQL_SUCCESS Function completed successfully.
SQL_SUCCESS_WITH_INFO Function completed successfully, with a nonfatal status information. \ Use the SQLGetDiagRec() function to retrieve the additional information.
SQL_ERROR Function failed. Use the SQLGetDiagRec() function to retrieve the error information.
SQL_INVALID_HANDLE Function failed because an invalid environment, connection, \ statement, or descriptor handle was provided as an argument.
SQL_NO_DATA No more data was available.
SQL_NEED_DATA More data is needed, such as when parameter data is sent at execution time.

Definition at line 76 of file sqltypes.h.

◆ SQLSCHAR

typedef SCHAR SQLSCHAR

Definition at line 51 of file sqltypes.h.

◆ SQLSMALLINT

typedef int16_t SQLSMALLINT

Definition at line 53 of file sqltypes.h.

◆ SQLTIME

typedef uint8_t SQLTIME

Definition at line 61 of file sqltypes.h.

◆ SQLTIMESTAMP

typedef uint8_t SQLTIMESTAMP

Definition at line 62 of file sqltypes.h.

◆ SQLUBIGINT

typedef uint64_t SQLUBIGINT

Definition at line 238 of file sqltypes.h.

◆ SQLUINTEGER

typedef uint32_t SQLUINTEGER

Definition at line 56 of file sqltypes.h.

◆ SQLUSMALLINT

typedef uint16_t SQLUSMALLINT

Definition at line 54 of file sqltypes.h.

◆ SQLVARCHAR

typedef uint8_t SQLVARCHAR

Definition at line 63 of file sqltypes.h.

◆ SQLWCHAR

typedef wchar_t SQLWCHAR

Definition at line 77 of file sqltypes.h.

◆ TIME_STRUCT

typedef struct tagTIME_STRUCT TIME_STRUCT

◆ TIMESTAMP_STRUCT

Enumeration Type Documentation

◆ SQLINTERVAL

Enumerator
SQL_IS_YEAR 
SQL_IS_MONTH 
SQL_IS_DAY 
SQL_IS_HOUR 
SQL_IS_MINUTE 
SQL_IS_SECOND 
SQL_IS_YEAR_TO_MONTH 
SQL_IS_DAY_TO_HOUR 
SQL_IS_DAY_TO_MINUTE 
SQL_IS_DAY_TO_SECOND 
SQL_IS_HOUR_TO_MINUTE 
SQL_IS_HOUR_TO_SECOND 
SQL_IS_MINUTE_TO_SECOND 

Definition at line 175 of file sqltypes.h.