SQLite Forum

Limiting the "precision" of floating-point to text conversions in the printf() leads to testsuite failure in version 3.26.0
Login
I see a several strange things here.

1. The "patch" adds a test where, before, no test existed. And your "got:" result is empty whereas the "expected:" result is not.  It makes me wonder, did you also apply the patch to the test suite?

2. Nothing that should be output by the added test resembles the "expected:" result.  Should we expect a change added this May, to a SQLite version much later that the 3.26.0 you are using, to pass the older test suite with one addition? (Maybe, as a general rule, if the change is independent of everything else, such a thing might be expected. But there are many ways for that to go sideways.)

3. There is too little information in your post to determine if you applied the change correctly.  Given the above strangeness, there is reason to think that either you did not or the change to SQLite 3.31.1 (I suppose) does not apply, all by itself, to that much older version.

4. The [associated ticket for the patch referenced](https://www.sqlite.org/src/info/23439ea582241138), in its title, mentions the same sort of stack overflow problem as is mentioned in the timeline for patches before and after the one you applied. This tends to support the above "does not apply, all by itself" conjecture.

I doubt that this "failure" can be explained without seeing what "applying the patch" actually means here.