mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
Avoid negative hashes in lambda names, refs #543
This commit is contained in:
parent
dab23884ae
commit
c764a9ee8f
1 changed files with 1 additions and 1 deletions
|
|
@ -2689,7 +2689,7 @@ class Table(Queryable):
|
|||
|
||||
fn_name = fn.__name__
|
||||
if fn_name == "<lambda>":
|
||||
fn_name = f"lambda_{hash(fn)}"
|
||||
fn_name = f"lambda_{abs(hash(fn))}"
|
||||
self.db.register_function(convert_value, name=fn_name)
|
||||
sql = "update [{table}] set {sets}{where};".format(
|
||||
table=self.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue