PL/SQL parser (MDEV-10142)

[MDEV-10839] sql_mode=ORACLE: Predefined exceptions: TOO_MANY_ROWS, NO_DATA_FOUND, DUP_VAL_ON_INDEX Created: 2016-09-20  Updated: 2020-08-27  Resolved: 2016-09-20

Status: Closed
Project: MariaDB Server
Component/s: Parser, Stored routines
Affects Version/s: None
Fix Version/s: 10.3.0

Type: Technical task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: Compatibility

Issue Links:
Relates
relates to MDEV-10586 sql_mode=ORACLE: Predefined exception... Open
Sprint: 10.2.2-3, 10.2.2-1, 10.2.2-2, 10.2.2-4, 10.1.18

 Description   

When running in sql_mode=ORACLE, MariaDB should understand predefined exception names.

BEGIN
  ...
EXCEPTION
  WHEN TOO_MANY_ROWS THEN ...
  WHEN NO_DATA_FOUND THEN ...
  WHEN OTHERS THEN NULL;
END;

Under terms of this task we'll implement the most important predefined exceptions:

  • TOO_MANY_ROWS
  • NO_DATA_FOUND
  • DUP_VAL_ON_INDEX

Other predefined exception names will be implemented by MDEV-10586.


Generated at Thu Feb 08 07:45:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.