]> git.ipfire.org Git - thirdparty/sqlite.git/commit
Change the internal btree routine moveToRoot() to return SQLITE_EMPTY if
authordrh <drh@noemail.net>
Mon, 14 Aug 2017 18:13:52 +0000 (18:13 +0000)
committerdrh <drh@noemail.net>
Mon, 14 Aug 2017 18:13:52 +0000 (18:13 +0000)
commit44548e7218faf4fdffa8ec4943895f169bdeab23
treefc94caa49ae3f4b293c1f4b36bec5d35159e4b14
parentf0357d8b2c5eada815416cc0de607e572cf2f8b6
Change the internal btree routine moveToRoot() to return SQLITE_EMPTY if
the table is empty or if it has pgnoRoot==0.  This simplifies the callers,
making them smaller and faster.  The SQLITE_EMPTY result code is intercepted
and changed into SQLITE_OK before surfacing in an API.

FossilOrigin-Name: 240d57143d943eaddd5f7c2d473f47a1d29417e61d28142f70f3d960bb9b30df
manifest
manifest.uuid
src/btree.c
src/sqlite.h.in