confluentinc / kafka-connect-jdbc

Kafka Connect connector for JDBC-compatible databases
Other
1.01k stars 953 forks source link

How to solve NULL in where condition #1366

Open SFight opened 8 months ago

SFight commented 8 months ago

in where condition,have null value,then the sql will be UPDATE user SET age = 18 WHERE name = NULL; but name = NULL will result 0 rows. however there is one row with null name. change the sql like that: UPDATE user SET age = 18 WHERE name IS NULL; then the row with NULL name will be updated.