Open SilentSnacker opened 6 hours ago
This seems like a rare corner case. I worked around it by just manually requiring the helpers ns before registering our custom clause.
Thanks for reporting this. I'll have to have a think about the best way to handle this -- you're probably right that the simplest solution would be to make this an actual test since it really was intended to be a development aid for me...
The
honey.sql.helpers
namespace has the following assertions near the bottom of the file.It seems like this will fail if custom clauses have already been registered via the
honey.sql/register-clause!
function.It results in a somewhat confusing exception when trying to require
honey.sql.helpers
in some other ns declaration.It took me a while to figure out what was happening so thought I would create this issue here.
I am not sure what the appropriate fix would be. Maybe one of:
Thank you for this library!