Skip to content

Commit a9c18f4

Browse files
committed
EXECUTE PROCEDURE do not return more than 1 row
1 parent 4b988eb commit a9c18f4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/fb-cpp/Attachment.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,6 @@ RowSet Attachment::queryPreparedRowSet(Statement& statement, Transaction& transa
129129
}
130130

131131
const auto hasRow = statement.execute(transaction);
132-
return RowSet{statement, hasRow ? maxRows : 0u, hasRow};
132+
const auto effectiveMaxRows = statement.getType() == StatementType::EXEC_PROCEDURE ? 1u : maxRows;
133+
return RowSet{statement, hasRow ? effectiveMaxRows : 0u, hasRow};
133134
}

0 commit comments

Comments
 (0)