#ifndef HsODBC
#define HsODBC

#ifdef mingw32_HOST_OS
#include <windows.h>
#endif

#include <sqlext.h>
#include <sqlucode.h>

#define FIELD_NAME_LENGTH 255

typedef struct
	{
		HSTMT hSTMT;
		SQLUSMALLINT fieldsCount;
		SQLCHAR fieldName[FIELD_NAME_LENGTH];
		SQLSMALLINT NameLength;
        SQLSMALLINT DataType;
		SQLULEN ColumnSize;
        SQLSMALLINT DecimalDigits;
		SQLSMALLINT Nullable;
	} FIELD;

#ifdef mingw32_HOST_OS
void my_sqlFreeEnv(HENV hEnv);
#endif

#endif
