question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trigger processing broken in 5.2.5; worked in 5.2.4

See original GitHub issue

When trying to save a trigger to MySQL, I get a syntax error message. This same trigger worked fine in 5.2.4. Went to a mysql command line to submit the trigger to see if it was in error - it wasn’t and was processed.

The alleged syntax error was at or around the 6th line:

        SELECT NEW.test_code INTO @testCode;
        SELECT COUNT(*) FROM testing.test WHERE test_code = @testCode INTO @testCount;
        IF @testCount > 0 THEN
            SELECT name, test_term, test_term_type FROM testing.test WHERE promotion_code = @testCode INTO @name, @testTerm, @testTermType;
        ELSE
            SELECT '', '', '' INTO @name, @testTerm, @testTermType;
        END IF;
    ELSE
        SELECT '', '', '', '' INTO @testCode, @name, @testTerm, @testTermType;
    END IF;

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
p91paulcommented, Dec 6, 2018

you should be using the “play” button, 2 buttons above the one you pressed.

0reactions
lhartzmancommented, Dec 12, 2018

Yes! I thought I had. Thanks for the help on this. Is there a reason that the trigger view has the create new trigger icon disabled?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix List for Sterling B2B Integrator V5.2 (End of support ... - IBM
This page contains comprehensive fix information for all fix packs and interim fixes released for Sterling B2B Integrator V5.2.5 or later.
Read more >
The Grails Framework 5.2.5
The Grails Gradle Publish plugin used the Bintray API to publish artifacts. However, after the JFrog shutdown of Bintray, this stopped working. We...
Read more >
Teamscale 5.2 | Teamscale Documentation
Fixes. Some projects created with Teamscale 5.2.0-5.2.5 failed with a CheckException after a drop-in update to version 5.2.6 or newer; Branch preview for ......
Read more >
Chapter 5. The contextual component model - JBoss.org
A task is a conversation that is significant in terms of a long-running business process, and has the potential to trigger a business...
Read more >
dCache 5.2 Release Notes - dCache.org
dCacheView now works for redirected transfers for non-anonymous data ... to be triggered if the client disconnects before dCache has finished processing the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found