mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-12 03:24:23 +02:00
in extract code, check equality witH IS instead of = for nulls
sqlite "IS" is equivalent to SQL "IS NOT DISTINCT FROM" close #423
This commit is contained in:
parent
855bce8c38
commit
1b35a92e3e
1 changed files with 1 additions and 1 deletions
|
|
@ -1761,7 +1761,7 @@ class Table(Queryable):
|
|||
magic_lookup_column=magic_lookup_column,
|
||||
lookup_table=table,
|
||||
where=" AND ".join(
|
||||
"[{table}].[{column}] = [{lookup_table}].[{lookup_column}]".format(
|
||||
"[{table}].[{column}] IS [{lookup_table}].[{lookup_column}]".format(
|
||||
table=self.name,
|
||||
lookup_table=table,
|
||||
column=column,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue