GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Testing Create procedure with modifies option · phpmyadmin/sql-parser@084ca3d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tests/Builder
    • CreateStatementTest.php
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/Builder/CreateStatementTest.php‎

Copy file name to clipboardExpand all lines: tests/Builder/CreateStatementTest.php
+17Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,23 @@ public function testBuilderViewComplex(): void
443443

444444
public function testBuilderCreateProcedure(): void
445445
{
446+
447+
$parser = new Parser(
448+
'CREATE DEFINER=`root`@`%`'
449+
. ' PROCEDURE `test2`(IN `_var` INT) DETERMINISTIC'
450+
. ' MODIFIES SQL DATA SELECT _var'
451+
);
452+
453+
/** @var CreateStatement $stmt */
454+
$stmt = $parser->statements[0];
455+
456+
$this->assertSame(
457+
'CREATE DEFINER=`root`@`%`'
458+
. ' PROCEDURE `test2` (IN `_var` INT) DETERMINISTIC'
459+
. ' MODIFIES SQL DATA SELECT _var',
460+
$stmt->build()
461+
);
462+
446463
$parser = new Parser(
447464
'CREATE DEFINER=`root`@`%`'
448465
. ' PROCEDURE `test2`(IN `_var` INT) NOT DETERMINISTIC NO SQL'

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.