mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Resolution to http://pecl.php.net/bugs/bug.php?id=5193 for all drivers.
This commit is contained in:
parent
08b695a3e8
commit
fbd6ce4db5
@ -1534,6 +1534,10 @@ static PHP_METHOD(PDOStatement, getColumnMeta)
|
||||
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &colno)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
if(colno < 0) {
|
||||
pdo_raise_impl_error(stmt->dbh, stmt, "42P10", "column number must be non-negative" TSRMLS_CC);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (!stmt->methods->get_column_meta) {
|
||||
pdo_raise_impl_error(stmt->dbh, stmt, "IM001", "driver doesn't support meta data" TSRMLS_CC);
|
||||
|
Loading…
Reference in New Issue
Block a user