mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
WS, plus default: would prevent case SQLITE_DONE: in php_sqlite_fetch().
This commit is contained in:
parent
fe94e0394e
commit
23c4c206a4
@ -804,7 +804,7 @@ PHP_FUNCTION(sqlite_close)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ */
|
||||
/* {{{ php_sqlite_fetch */
|
||||
int php_sqlite_fetch(struct php_sqlite_result *rres TSRMLS_DC)
|
||||
{
|
||||
const char **rowdata, **colnames;
|
||||
@ -863,13 +863,6 @@ next_row:
|
||||
ret = SQLITE_OK;
|
||||
break;
|
||||
|
||||
case SQLITE_BUSY:
|
||||
case SQLITE_ERROR:
|
||||
case SQLITE_MISUSE:
|
||||
default:
|
||||
/* fall through to finalize */
|
||||
;
|
||||
|
||||
case SQLITE_DONE:
|
||||
if (rres->vm) {
|
||||
ret = sqlite_finalize(rres->vm, &errtext);
|
||||
@ -880,6 +873,14 @@ next_row:
|
||||
sqlite_freemem(errtext);
|
||||
}
|
||||
break;
|
||||
|
||||
case SQLITE_BUSY:
|
||||
case SQLITE_ERROR:
|
||||
case SQLITE_MISUSE:
|
||||
default:
|
||||
/* fall through to finalize */
|
||||
;
|
||||
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user