[CONJ-354] Streaming issue when using procedures in PrepareStatement/Statement Created: 2016-09-26  Updated: 2016-09-27  Resolved: 2016-09-27

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.5.2
Fix Version/s: 1.5.3

Type: Bug Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

Statement calling procedures with fetch size (result streaming) will not finished in a stable state, according to fetch size value and procedure resultset size.

Example :
/*
DELIMITER $$
Create procedure testCallWithFetchSize ()
BEGIN
SELECT 1;
SELECT 2;
END$$
DELIMITER;
*/

try (Statement statement = sharedConnection.createStatement()) {
	statement.setFetchSize(1);
	try (ResultSet resultSet = statement.executeQuery("CALL testCallWithFetchSize()")) {
		int rowCount = 0;
		while(resultSet.next()) {
			rowCount++;
		}
	}
}
//next query will fail.

Procedure result differ from other query, since can have differents results.

JDBC indicate that procedures are normally called using CallableStatement , but there is not reason to block that for PrepareStatement/statement.


Generated at Thu Feb 08 03:15:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.