Init `$sql_error` to 0 in the beginning of `sql()` in Perl scripts
commit526c3c8e478081bdaa2d839bb1b97932a9a6c7e7
authorØyvind A. Holm <sunny@sunbase.org>
Mon, 16 Oct 2023 18:01:43 +0000 (16 20:01 +0200)
committerØyvind A. Holm <sunny@sunbase.org>
Mon, 16 Oct 2023 18:01:43 +0000 (16 20:01 +0200)
treec7471d03d3bad5492034d507320dfc4ff44f0366
parentc31c3a8a1b4918b3c5f91160f2440c23e2667f5a
Init `$sql_error` to 0 in the beginning of `sql()` in Perl scripts

It shouldn't be necessary to set `$sql_error` to 0 before calling
`sql()`, it's easily forgotten. Put the initialization in `sql()`
because `sql()` never sets the value to 0, it only sets it to 1 if any
error occurs.

2ef2e12a-6c4e-11ee-9948-754a1be59913
Lib/std/book-cmark/bin/stats
sort-sqlite
tests/filesynced.t
tests/sort-sqlite.t