/* $Id: dbi_sql.h,v 10.3 2000/06/02 16:31:37 timbo Exp $
* Copyright (c) 1997,1998,1999 Tim Bunce England
* See COPYRIGHT section in DBI.pm for usage and distribution rights.
/* Some core SQL CLI standard (ODBC) declarations */
#ifndef SQL_SUCCESS /* don't clash with ODBC based drivers */
/* Standard SQL datatypes (ANSI/ODBC type numbering) */
#define SQL_DATE 9 /* SQL_DATETIME in CLI! */
/* Other SQL datatypes (ODBC type numbering) */
#define SQL_LONGVARCHAR (-1)
#define SQL_VARBINARY (-3)
#define SQL_LONGVARBINARY (-4)
#define SQL_BIGINT (-5) /* too big for IV */
/* Support for Unicode and SQL92 */
#define SQL_WVARCHAR (-9)
#define SQL_WLONGVARCHAR (-10)
#define SQL_SUCCESS_WITH_INFO 1
#define SQL_NO_DATA_FOUND 100
/* Handy macro for testing for success and success with info. */
/* BEWARE that this macro can have side effects since rc appears twice! */
/* So DONT use it as if(SQL_ok(func(...))) { ... } */
#define SQL_ok(rc) ((rc)==SQL_SUCCESS || (rc)==SQL_SUCCESS_WITH_INFO)