From 6b18b88b2cb663fcd43f581a5f12fd75070c0133 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 27 Feb 2005 22:48:14 +0000 Subject: [PATCH] - Allow default fetch mode to contain fetch flags --- ext/pdo/pdo_stmt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 59e7a0b5c3..ed8c8e1f1c 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -967,7 +967,8 @@ static int pdo_stmt_verify_mode(pdo_stmt_t *stmt, int mode, int fetch_all TSRMLS mode = mode & ~PDO_FETCH_FLAGS; if (mode == PDO_FETCH_USE_DEFAULT) { - mode = stmt->default_fetch_type; + flags = stmt->default_fetch_type & PDO_FETCH_FLAGS; + mode = stmt->default_fetch_type & ~PDO_FETCH_FLAGS; } switch(mode) { -- 2.50.1