summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-02-27 22:48:14 +0000
committerMarcus Boerger <helly@php.net>2005-02-27 22:48:14 +0000
commit6b18b88b2cb663fcd43f581a5f12fd75070c0133 (patch)
tree3f003a9d133432c27347d653035b6ae113dedd4d /ext
parentd0a76e992b68b204cd877440b0c706b26d7c1839 (diff)
downloadphp-git-6b18b88b2cb663fcd43f581a5f12fd75070c0133.tar.gz
- Allow default fetch mode to contain fetch flags
Diffstat (limited to 'ext')
-rwxr-xr-xext/pdo/pdo_stmt.c3
1 files changed, 2 insertions, 1 deletions
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) {