View Issue Details

IDProjectCategoryView StatusLast Update
0001623Database Workbench v5Diagrammingpublic2022-01-13 14:11
ReporterStephen Lappin Assigned ToMartijn Tonies  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Product Version5.4.2 
Summary0001623: Use semi-colon command terminator for trigger DDL
DescriptionWhen generating (MySQL/MariaDB) DDL, a semi-colon is used for the command terminator for all statements except for triggers (DROP and CREATE).

Instead, new-line and forward-slash are used.

Many (most?) MySQL clients do not understand this terminator and the DDL fails with an error.

Please change the terminator to a semicolon
TagsNo tags attached.

Activities

Martijn Tonies

2022-01-13 11:27

administrator   ~0000561

Hello Stephen,

Because Trigger code includes multiple commands, the ';' is also used to end commands and cannot be used as statement terminator.

See the multi-line trigger here
https://dev.mysql.com/doc/refman/8.0/en/trigger-syntax.html

Issue History

Date Modified Username Field Change
2018-06-29 15:36 Stephen Lappin New Issue
2022-01-13 11:27 Martijn Tonies Assigned To => Martijn Tonies
2022-01-13 11:27 Martijn Tonies Status new => feedback
2022-01-13 11:27 Martijn Tonies Note Added: 0000561
2022-01-13 14:11 Martijn Tonies Status feedback => closed
2022-01-13 14:11 Martijn Tonies Resolution open => won't fix