--- embedaddon/php/ext/pdo_dblib/php_pdo_dblib_int.h 2012/02/21 23:47:59 1.1.1.1 +++ embedaddon/php/ext/pdo_dblib/php_pdo_dblib_int.h 2014/06/15 20:03:53 1.1.1.4 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2012 The PHP Group | + | Copyright (c) 1997-2014 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pdo_dblib_int.h,v 1.1.1.1 2012/02/21 23:47:59 misho Exp $ */ +/* $Id: php_pdo_dblib_int.h,v 1.1.1.4 2014/06/15 20:03:53 misho Exp $ */ #ifndef PHP_PDO_DBLIB_INT_H #define PHP_PDO_DBLIB_INT_H @@ -71,6 +71,8 @@ # define SQLVARBINARY SYBVARBINARY # ifdef SYBUNIQUE # define SQLUNIQUE SYBUNIQUE +#else +# define SQLUNIQUE 36 /* FreeTDS Hack */ # endif # define DBERRHANDLE(a, b) dberrhandle(b) @@ -114,30 +116,15 @@ typedef struct { } pdo_dblib_db_handle; typedef struct { - int coltype; - char *name; - int maxlen; - char *source; -} pdo_dblib_col; - -typedef struct { - unsigned long len; - char *data; -} pdo_dblib_colval; - -typedef struct { pdo_dblib_db_handle *H; - - int ncols; - pdo_dblib_col *cols; - - pdo_dblib_colval *rows; - int nrows; - - int current; - pdo_dblib_err err; } pdo_dblib_stmt; + +typedef struct { + const char* key; + int value; +} pdo_dblib_keyval; + ZEND_BEGIN_MODULE_GLOBALS(dblib) pdo_dblib_err err;