PL/SQL parser (MDEV-10142)

[MDEV-13419] Cleanup for Sp_handler::show_create_sp Created: 2017-08-01  Updated: 2018-08-31  Resolved: 2017-08-01

Status: Closed
Project: MariaDB Server
Component/s: Stored routines
Affects Version/s: 10.3
Fix Version/s: 10.3.1

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

Issue Links:
Blocks
blocks MDEV-10591 Oracle-style packages Closed
Sprint: 10.2.2-3, 10.2.2-1, 10.2.2-2, 10.2.2-4, 10.1.18

 Description   

In order to implement packages easier, we'll do the following changes in Sp_handler::show_create_sp():

  • Reverse the return value to the standard MariaDB notation: false on success, true on error
  • Add a new parameter const DDL_options_st ddl_options and use it to process the OR REPLACE and IF NOT EXISTS clauses, instead of accessing thd->lex->create_info.

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