Skip to content

Commit c5f8a2e

Browse files
authored
in extract code, check equality witH IS instead of = for nulls (#455)
sqlite "IS" is equivalent to SQL "IS NOT DISTINCT FROM" close #423
1 parent 19dd077 commit c5f8a2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlite_utils/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,7 @@ def extract(
17911791
magic_lookup_column=magic_lookup_column,
17921792
lookup_table=table,
17931793
where=" AND ".join(
1794-
"[{table}].[{column}] = [{lookup_table}].[{lookup_column}]".format(
1794+
"[{table}].[{column}] IS [{lookup_table}].[{lookup_column}]".format(
17951795
table=self.name,
17961796
lookup_table=table,
17971797
column=column,

0 commit comments

Comments
 (0)