Browse Source
I discovered this accidentally when using the `tests/plugins/dblog.py` plugin on another testcase: tests/test_connection.py::test_fail_unconfirmed There the plugin/hook crashes because it can't execute the statement: ```json { "jsonrpc": "2.0", "id": 34, "error": { "code": -32600, "message": "Error while processing db_write: unrecognized token: \"174WHERE\"", "traceback": "Traceback (most recent call last):\n File \"/home/will/projects/lightning.git/contrib/pyln-client/pyln/client/plugin.py\", line 535, in _dispatch_request\n result = self._exec_func(method.func, request)\n File \"/home/will/projects/lightning.git/contrib/pyln-client/pyln/client/plugin.py\", line 520, in _exec_func\n return func(*ba.args, **ba.kwargs)\n File \"/home/will/projects/lightning.git/tests/plugins/dblog.py\", line 45, in db_write\n plugin.conn.execute(c)\nsqlite3.OperationalError: unrecognized token: \"174WHERE\"\n" } } ``` Changelog-Fixed: plugin: Regression with SQL statement expansion that could result in invalid statements being passed to the `db_write` hook.travis-experimental
committed by
Rusty Russell
4 changed files with 9 additions and 9 deletions
Loading…
Reference in new issue