Skip to content

Commit 6671aa2

Browse files
committed
Edit a test for #339 - create function, add a COMMENT
Signed-off-by: William Desportes <[email protected]>
1 parent bcb442e commit 6671aa2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/Builder/CreateStatementTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ public function testBuilderCreateFunction()
447447
'CREATE DEFINER=`root`@`localhost`'
448448
. ' FUNCTION `inventory_in_stock`(`p_inventory_id` INT) RETURNS tinyint(1)'
449449
. ' READS SQL DATA' . "\n"
450+
. ' COMMENT \'My best function written by a friend\'\'s friend' . "\n"
450451
. 'BEGIN' . "\n"
451452
. ' DECLARE v_rentals INT;' . "\n"
452453
. ' DECLARE v_out INT;' . "\n"
@@ -482,6 +483,7 @@ public function testBuilderCreateFunction()
482483
'CREATE DEFINER=`root`@`localhost`'
483484
. ' FUNCTION `inventory_in_stock` (`p_inventory_id` INT) RETURNS TINYINT(1)'
484485
. ' READS SQL DATA' . "\n"
486+
. ' COMMENT \'My best function written by a friend\'\'s friend' . "\n"
485487
. 'BEGIN' . "\n"
486488
. ' DECLARE v_rentals INT;' . "\n"
487489
. ' DECLARE v_out INT;' . "\n"
@@ -536,6 +538,7 @@ public function testBuilderCreateFunction()
536538

537539
$this->assertSame(
538540
'READS SQL DATA' . "\n"
541+
. ' COMMENT \'My best function written by a friend\'\'s friend' . "\n"
539542
. 'BEGIN' . "\n"
540543
. ' DECLARE v_rentals INT;' . "\n"
541544
. ' DECLARE v_out INT;' . "\n"

0 commit comments

Comments
 (0)