1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Ensure the sqlite3Select() routine always returns non-zero if an error has occurred.

FossilOrigin-Name: b51028ed2f57f4245a7ebd9bdb99d1bcfaf1a01b
This commit is contained in:
dan
2015-04-16 07:19:23 +00:00
parent 22ecef5c20
commit 5b1c07e7fb
4 changed files with 15 additions and 13 deletions

View File

@@ -5483,10 +5483,9 @@ int sqlite3Select(
*/
sqlite3VdbeResolveLabel(v, iEnd);
/* The SELECT was successfully coded. Set the return code to 0
** to indicate no errors.
*/
rc = 0;
/* The SELECT has been coded. If there is an error in the Parse structure,
** set the return code to 1. Otherwise 0. */
rc = (pParse->nErr>0);
/* Control jumps to here if an error is encountered above, or upon
** successful coding of the SELECT.