Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Bug In Backup Of Triggers

forums forums SQLyog SQLyog BETA Discussions Bug In Backup Of Triggers

  • This topic is empty.
Viewing 6 reply threads
  • Author
    Posts
    • #9657
      peterlaursen
      Participant

      This is reproduced with 5.12 beta3 but may affect more versions.

      Creating a dummy/empty trigger like:

      Code:
      DELIMITER $$;

      DROP TRIGGER `test`.`mytrig`$$

      CREATE TRIGGER `test`.`mytrig` BEFORE INSERT on `test`.`test`
      FOR EACH ROW BEGIN
      END$$

      DELIMITER;$$

      both backup tools generate

      Code:
      CREATE TRIGGER `mytrig` BEFORE INSERT ON `test` FOR EACH ROWBEGIN
      END$$

      There is a missing space (or better ) in ROWBEGIN !

    • #21485
      Ritesh
      Member

      I have forwarded to Sarat. He will take a look into it and this will be fixed in v5.12.

    • #21486
      peterlaursen
      Participant

      BTW .. I also think that the backup tools should soon allow for backup of EVENTS with MySQL 5.1 – partiotions are backed up allready as they are returned with the 'create statement for the table'.

      I don't request full-blooded support for events at this time. Only in the backup tools in 'the first run'.

      Probably the code is very similar as for SP's ..

    • #21487
      Ritesh
      Member

      Trigger bug fixed in v5.12 BETA developmengt tree. We will probably support Events in v5.2. Not that hard to implement.

    • #21488
      peterlaursen
      Participant

      @Ritesh

      did you read this discussion: http://www.webyog.com/forums/index.php?showtopic=2119

      the 'export' tool has an option to deselect 'drop trigger' statement – the 'backup' powertool has not. Why?

    • #21489
      Ritesh
      Member

      In the third page under 5x Objects, there is an option “Drop Objects”. Selecting that will generate the DROP TRIGGER option. There is no separate option to drop triggers etc. individually. Its incorrect. Will be fixed in v5.2.

    • #21490
      Ritesh
      Member
Viewing 6 reply threads
  • You must be logged in to reply to this topic.