Closed steepdawn974 closed 2 months ago
Datetime functions were introduced in Core Lightning's v24.08 as part of PR #7467. However, the SQL documentation does not indicate the version in which this feature was added. To use these functions, your node has to be upgraded to v24.08.
Issue
Per
lightning-sql
documentation, the functionsstrftime
,date
etc should be supported, but queries fail with the error:Steps to Reproduce
Example 1:
Example 2:
getinfo
getinfo { "id": "xxx", "alias": "xxx "color": "0362df", "num_peers": 4, "num_pending_channels": 1, "num_active_channels": 3, "num_inactive_channels": 0, "address": [ { "type": "torv3", "address": "xxxxxxx.onion", "port": 9736 } ], "binding": [ { "type": "ipv4", "address": "127.0.0.1", "port": 9736 } ], "version": "v24.05", "blockheight": 857896, "network": "bitcoin", "fees_collected_msat": , "lightning-dir": "/home/bitcoin/.lightning/bitcoin", "our_features": { "init": "08a0000a8a59a1", "node": "88a0000a8a59a1", "channel": "", "invoice": "02000002024100" } }