diff options
| author | Marcus Boerger <helly@php.net> | 2005-02-27 22:48:14 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2005-02-27 22:48:14 +0000 |
| commit | 6b18b88b2cb663fcd43f581a5f12fd75070c0133 (patch) | |
| tree | 3f003a9d133432c27347d653035b6ae113dedd4d /ext | |
| parent | d0a76e992b68b204cd877440b0c706b26d7c1839 (diff) | |
| download | php-git-6b18b88b2cb663fcd43f581a5f12fd75070c0133.tar.gz | |
- Allow default fetch mode to contain fetch flags
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) { |
