diff options
Diffstat (limited to 'ext')
| -rwxr-xr-x | ext/pdo/pdo_stmt.c | 3 |
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) { |
