]> git.ipfire.org Git - thirdparty/sqlite.git/commit
Do not factor out constant functions into the initialization section of a
authordrh <drh@noemail.net>
Wed, 11 Mar 2020 19:56:26 +0000 (19:56 +0000)
committerdrh <drh@noemail.net>
Wed, 11 Mar 2020 19:56:26 +0000 (19:56 +0000)
commit2267a7fa873c203d0b59fe53b459e0e5772a4938
treedf13ee213c872a8746bff752703e0719956e98f4
parent8d5cea6b61c30dd839a32e253bf7ae241b5662f4
parent9b258c54e453edb5c8c81c3d28b2cb6e2b76a13e
Do not factor out constant functions into the initialization section of a
prepared statement, because even though they are constant, they can still
throw exceptions.  Instead, put such functions in an OP_Once block.  This
fixes ticket [3c9eadd2a6ba0aa5] and causes COALESCE() and CASE...END to
be short-circuit.

FossilOrigin-Name: c5f96a085db9688a09793f52ce1ecf033c2e6e2e5873a19fe0fb374b242b317f
manifest
manifest.uuid