Well, that was a fast fix. I'll delete this thread.
Please don't delete your error condition. That is a terrible tease. :( This fix solved a critical JOIN query(https://sqlite.org/forum/forumpost/c8f99ee0ba) in my code, but my brain could not determine that from the patch comment: "Fix problems in the constant propagation optimization that were introduced by check-in [1c3e5c20a9e6f501]." Your end use case can save others time in determining root cause of failures.