Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failure when setting NULL in UPDATE statement in JDBC-based connectors #24244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chenjian2664
Copy link
Contributor

@chenjian2664 chenjian2664 commented Nov 25, 2024

Description

Close #24204

Release notes

## ClickHouse, Ignite, MariaDB, MySQL, Oracle, Phoenix, PostgreSQL, Redshift, SingleStore, Snowflake, SQL Server, Vertica
* Fix failure when updating values with `NULL`. ({issue}`24204`)

@@ -1868,6 +1868,10 @@ public void testConstantUpdateWithVarcharEqualityPredicates()
}
assertUpdate("UPDATE " + table.getName() + " SET col1 = 20 WHERE col2 = 'A'", 1);
assertQuery("SELECT * FROM " + table.getName(), "VALUES (1, 'a'), (20, 'A')");

// test update set to null
assertUpdate("UPDATE " + table.getName() + " SET col1 = null WHERE col2 = 'A'", 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A predicate isn't necessary for #24204 and we should test with all connectors. Please add a new test to BaseConnectorTest instead.

@ebyhr ebyhr changed the title Fix constant update set to null value Fix failure when setting NULL in UPDATE statement in JDBC-based connectors Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Unable to update Postgresql column to null in Trino
2 participants