From: Ilia Alshanetsky Date: Wed, 20 Feb 2008 03:12:23 +0000 (+0000) Subject: MFB: Fixed bug #44171 (Invalid FETCH_COLUMN index does not raise an error) X-Git-Tag: RELEASE_2_0_0a1~421 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51056f89850f305f8b23ae8e32b713dca9458485;p=php MFB: Fixed bug #44171 (Invalid FETCH_COLUMN index does not raise an error) --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 3a51da78aa..2b9ff4f26d 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -936,6 +936,8 @@ static int do_fetch(pdo_stmt_t *stmt, int do_bind, zval *return_value, } else { break; } + } else { + pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "Invalid column index" TSRMLS_CC); } return 0;