(node_factory, bitcoind)
| 4510 | |
| 4511 | |
| 4512 | def test_sql_deprecated(node_factory, bitcoind): |
| 4513 | l1, l2 = node_factory.line_graph(2, opts=[{'allow-deprecated-apis': True}, {}]) |
| 4514 | |
| 4515 | # Even with deprecated APIs, this isn't there. |
| 4516 | with pytest.raises(RpcError, match="query failed with no such column: max_total_htlc_in_msat"): |
| 4517 | l1.rpc.sql("SELECT max_total_htlc_in_msat FROM peerchannels;") |
| 4518 | |
| 4519 | # But we can use a wildcard fine. |
| 4520 | ret = l2.rpc.sql("SELECT COUNT(*) FROM peerchannels;") |
| 4521 | assert ret == {'rows': [[1]]} |
| 4522 | |
| 4523 | |
| 4524 | def test_sql_limit_per_list(node_factory): |
nothing calls this directly
no test coverage detected