[MDEV-22007] Documentation: Incorrect syntax for DECLARE CURSOR with parameters Created: 2020-03-22  Updated: 2020-06-19  Resolved: 2020-06-19

Status: Closed
Project: MariaDB Server
Component/s: Documentation
Affects Version/s: N/A
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Ian Gilfillan
Resolution: Fixed Votes: 0
Labels: None


 Description   

KB says:

DECLARE cursor_name [(cursor_formal_parameter[,...])] CURSOR FOR select_statement;

In fact, it is

DECLARE cur CURSOR (f INT) FOR SELECT 1;

(different order – first CURSOR, then parameters).

Possibly there are other differences.


Generated at Thu Feb 08 09:11:29 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.