mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / r / mysql_comments.result
blob7f1c0b50c5e617ec796a064be4d993c6e72e603f
1 drop table if exists t1;
2 drop function if exists foofct;
3 drop procedure if exists empty;
4 drop procedure if exists foosp;
5 drop procedure if exists nicesp;
6 drop trigger if exists t1_empty;
7 drop trigger if exists t1_bi;
8 "Pass 1 : --disable-comments"
13 foofct("call 1")
14 call 1
15 Function        sql_mode        Create Function character_set_client    collation_connection    Database Collation
16 foofct          CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nreturn\n\n\n\nx        latin1  latin1_swedish_ci       latin1_swedish_ci
17 foofct("call 2")
18 call 2
19 Function        sql_mode        Create Function character_set_client    collation_connection    Database Collation
20 foofct          CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nbegin\n  \n  \n  \n\n  \n\n  \n  return x;\nend        latin1  latin1_swedish_ci       latin1_swedish_ci
21 Procedure       sql_mode        Create Procedure        character_set_client    collation_connection    Database Collation
22 empty           CREATE DEFINER=`root`@`localhost` PROCEDURE `empty`()\nbegin\nend       latin1  latin1_swedish_ci       latin1_swedish_ci
23 id      data
24 foo     42
25 Procedure       sql_mode        Create Procedure        character_set_client    collation_connection    Database Collation
26 foosp           CREATE DEFINER=`root`@`localhost` PROCEDURE `foosp`()\ninsert into test.t1\n\n\n\n\n  \n\n  \n  values ("foo", 42)      latin1  latin1_swedish_ci       latin1_swedish_ci
27 Procedure       sql_mode        Create Procedure        character_set_client    collation_connection    Database Collation
28 nicesp          CREATE DEFINER=`root`@`localhost` PROCEDURE `nicesp`(a int)\nbegin\n  \n  declare b int;\n  declare c float;\n\n  \n  \n\n  \nend       latin1  latin1_swedish_ci       latin1_swedish_ci
29 Trigger sql_mode        SQL Original Statement  character_set_client    collation_connection    Database Collation
30 t1_empty                CREATE DEFINER=`root`@`localhost` trigger t1_empty after delete on t1\nfor each row\nbegin\nend latin1  latin1_swedish_ci       latin1_swedish_ci
31 Trigger sql_mode        SQL Original Statement  character_set_client    collation_connection    Database Collation
32 t1_bi           CREATE DEFINER=`root`@`localhost` trigger t1_bi before insert on t1\nfor each row\nbegin\n\n\n\n  \n  declare b int;\n  declare c float;\n\n  \n  \n\n  \n  set NEW.data := 12;\nend    latin1  latin1_swedish_ci       latin1_swedish_ci
33 id      data
34 trig    12
35 "Pass 2 : --enable-comments"
40 foofct("call 1")
41 call 1
42 Function        sql_mode        Create Function character_set_client    collation_connection    Database Collation
43 foofct          CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nreturn\n-- comment 1a\n# comment 1b\n/* comment 1c */\nx # after body, on same line    latin1  latin1_swedish_ci       latin1_swedish_ci
44 foofct("call 2")
45 call 2
46 Function        sql_mode        Create Function character_set_client    collation_connection    Database Collation
47 foofct          CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nbegin\n  -- comment 1a\n  # comment 1b\n  /*\n     comment 1c\n  */\n\n  -- empty line below\n\n  -- empty line above\n  return x;\nend        latin1  latin1_swedish_ci       latin1_swedish_ci
48 Procedure       sql_mode        Create Procedure        character_set_client    collation_connection    Database Collation
49 empty           CREATE DEFINER=`root`@`localhost` PROCEDURE `empty`()\nbegin\nend       latin1  latin1_swedish_ci       latin1_swedish_ci
50 id      data
51 foo     42
52 Procedure       sql_mode        Create Procedure        character_set_client    collation_connection    Database Collation
53 foosp           CREATE DEFINER=`root`@`localhost` PROCEDURE `foosp`()\ninsert into test.t1\n## These comments are part of the procedure body, and should be kept.\n# Comment 2a\n-- Comment 2b\n/* Comment 2c */\n  -- empty line below\n\n  -- empty line above\n  values ("foo", 42) # comment 3, still part of the body      latin1  latin1_swedish_ci       latin1_swedish_ci
54 Procedure       sql_mode        Create Procedure        character_set_client    collation_connection    Database Collation
55 nicesp          CREATE DEFINER=`root`@`localhost` PROCEDURE `nicesp`(a int)\nbegin\n  -- declare some variables here\n  declare b int;\n  declare c float;\n\n  -- do more stuff here\n  -- commented nicely and so on\n\n  -- famous last words ...\nend       latin1  latin1_swedish_ci       latin1_swedish_ci
56 Trigger sql_mode        SQL Original Statement  character_set_client    collation_connection    Database Collation
57 t1_empty                CREATE DEFINER=`root`@`localhost` trigger t1_empty after delete on t1\nfor each row\nbegin\nend latin1  latin1_swedish_ci       latin1_swedish_ci
58 Trigger sql_mode        SQL Original Statement  character_set_client    collation_connection    Database Collation
59 t1_bi           CREATE DEFINER=`root`@`localhost` trigger t1_bi before insert on t1\nfor each row\nbegin\n# comment 1a\n-- comment 1b\n/*\n   comment 1c\n*/\n  -- declare some variables here\n  declare b int;\n  declare c float;\n\n  -- do more stuff here\n  -- commented nicely and so on\n\n  -- famous last words ...\n  set NEW.data := 12;\nend      latin1  latin1_swedish_ci       latin1_swedish_ci
60 id      data
61 trig    12
62 End of 5.0 tests