diff options
Diffstat (limited to 'ext/pdo/php_pdo_driver.h')
-rw-r--r-- | ext/pdo/php_pdo_driver.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index af72b78795..bcbe5b3672 100644 --- a/ext/pdo/php_pdo_driver.h +++ b/ext/pdo/php_pdo_driver.h @@ -46,7 +46,7 @@ PDO_API char *php_pdo_int64_to_str(pdo_int64_t i64); # define FALSE 0 #endif -#define PDO_DRIVER_API 20150127 +#define PDO_DRIVER_API 20170320 enum pdo_param_type { PDO_PARAM_NULL, @@ -77,7 +77,15 @@ enum pdo_param_type { PDO_PARAM_ZVAL, /* magic flag to denote a parameter as being input/output */ - PDO_PARAM_INPUT_OUTPUT = 0x80000000 + PDO_PARAM_INPUT_OUTPUT = 0x80000000, + + /* magic flag to denote a string that uses the national character set + see section 4.2.1 of SQL-92: http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt + */ + PDO_PARAM_STR_NATL = 0x40000000, + + /* magic flag to denote a string that uses the regular character set */ + PDO_PARAM_STR_CHAR = 0x20000000, }; #define PDO_PARAM_FLAGS 0xFFFF0000 @@ -140,6 +148,7 @@ enum pdo_attribute_type { PDO_ATTR_MAX_COLUMN_LEN, /* make database calculate maximum length of data found in a column */ PDO_ATTR_DEFAULT_FETCH_MODE, /* Set the default fetch mode */ PDO_ATTR_EMULATE_PREPARES, /* use query emulation rather than native */ + PDO_ATTR_DEFAULT_STR_PARAM, /* set the default string parameter type (see the PDO::PARAM_STR_* magic flags) */ /* this defines the start of the range for driver specific options. * Drivers should define their own attribute constants beginning with this @@ -529,9 +538,6 @@ struct pdo_column_data { size_t maxlen; zend_ulong precision; enum pdo_param_type param_type; - - /* don't touch this unless your name is dbdo */ - void *dbdo_data; }; /* describes a bound parameter */ |