Skip to content

Fixed the issue where prepareStatement did not support the Blob type.When the ResultSet is empty, an SQL exception should be thrown#17364

Open
Adam-chengzhuo wants to merge 2 commits intoapache:masterfrom
Adam-chengzhuo:master
Open

Fixed the issue where prepareStatement did not support the Blob type.When the ResultSet is empty, an SQL exception should be thrown#17364
Adam-chengzhuo wants to merge 2 commits intoapache:masterfrom
Adam-chengzhuo:master

Conversation

@Adam-chengzhuo
Copy link
Contributor

@Adam-chengzhuo Adam-chengzhuo commented Mar 26, 2026

Description

The PreparedStatement.setBlob() method in IoTDB JDBC directly throws an exception, making it impossible to set Blob-type values.
ResultSet.findColumn() handles tree models and table models inconsistently. According to the JDBC specification, when the ResultSet is empty, an SQL exception should be thrown.

@Adam-chengzhuo Adam-chengzhuo changed the title Fixed the issue where prepareStatement did not support the Blob type. Fixed the issue where prepareStatement did not support the Blob type.When the ResultSet is empty, an SQL exception should be thrown Mar 26, 2026
@HTHou HTHou requested a review from JackieTien97 March 27, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant