/*
    sqltype.h

    Copyright (c) 1995, by picoSoft
    ALL RIGHTS RESERVED.

    Revision History:
    -----------------
*/

# ifndef sqltype_h
# define sqltype_h "$Id: sqltype.h 5.0 1999/10/08 10:17:43 picoSoft Exp $";

/* ODBCVER deve essere allineato con SQL_DRIVER_ODBC_VER nella SQLGetInfo */
#define ODBCVER 0x0250

# if (ODBCVER < 0x0300)

typedef void * SQLHANDLE;

# define SQL_OV_ODBC2 2
# define SQL_OV_ODBC3 3
# define SQL_TRUE  1
# define SQL_FALSE 0
# define SQL_HANDLE_ENV             1
# define SQL_HANDLE_DBC             2
# define SQL_HANDLE_STMT            3
# define SQL_HANDLE_DESC            4
# define SQL_ATTR_OUTPUT_NTS    10001
# define SQL_ATTR_ODBC_VERSION				200
# define SQL_ATTR_CONNECTION_POOLING			201
# define SQL_ATTR_CP_MATCH					202

# endif // (ODBCVER < 0x0300)

# ifndef MSDOS
# include "odbcsql.h"
# define SQL_API
# define FAR
# else
// extern "C" {
# include "windows.h"
# include "sql.h"
# include "sqlext.h"
// };
typedef int AttrDescType;
typedef int AttrCType;
# define SQL_C_UNKNOWN_TYPE 0

# endif
# endif 
