WS, plus default: would prevent case SQLITE_DONE: in php_sqlite_fetch().

This commit is contained in:
Wez Furlong 2003-04-27 13:32:43 +00:00
parent fe94e0394e
commit 23c4c206a4

View File

@ -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;
}