I suspect it's SQLite version dependant. 

On Thu, Oct 27, 2022, 12:21 Eli Zaretskii <eliz@gnu.org> wrote:
> From: Steve Downey <sdowney@gmail.com>
> Date: Mon, 24 Oct 2022 13:04:13 -0400
>
> When running tests in a clean build of the trunk I'm seeing a failure
>
> Test sqlite-returning backtrace:
>   signal(error ("SQL logic error (near \"RETURNING\": syntax error)"))
>   apply(signal (error ("SQL logic error (near \"RETURNING\": syntax er
>   #f(compiled-function () #<bytecode -0x16449576758bbd7e>)()
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name sqlite-returning :documentation nil :
>   ert-run-or-rerun-test(#s(ert--stats :selector (not (or ... ...)) :te
>   ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co
>   ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable)))
>   ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
>   command-line-1(("-L" ":." "-l" "ert" "-l" "src/sqlite-tests" "--eval
>   command-line()
>   normal-top-level()
> Test sqlite-returning condition:
>     (error "SQL logic error (near \"RETURNING\": syntax error)")
>    FAILED   9/11  sqlite-returning (0.000294 sec) at src/sqlite-tests.el:244

Thanks.  I cannot reproduce this on my system, FWIW.