mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-25 18:34:32 +02:00
in extract code, check equality witH IS instead of = for nulls (#455)
sqlite "IS" is equivalent to SQL "IS NOT DISTINCT FROM" close #423
This commit is contained in:
parent
19dd077944
commit
c5f8a2eb1a
1 changed files with 1 additions and 1 deletions
|
|
@ -1791,7 +1791,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