Skip to content

Commit 3028076

Browse files
committed
fix: prevent triggers without quoted trigger name or table name from failing to be parsed (alexanderglueck)
Refs #2347
1 parent 39df339 commit 3028076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/trigger_editor.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ procedure TfrmTriggerEditor.Init(Obj: TDBObject);
124124
rx := TRegExpr.Create;
125125
rx.ModifierI := True;
126126
QuoteCharsRx := QuoteRegExprMetaChars(DBObject.Connection.QuoteChars);
127-
QuotedWordRx := '['+QuoteCharsRx+'][^'+QuoteCharsRx+']+['+QuoteCharsRx+']';
127+
QuotedWordRx := '['+QuoteCharsRx+']?[^'+QuoteCharsRx+']+['+QuoteCharsRx+']?';
128128
rx.Expression := '(\sDEFINER=('+QuotedWordRx+'@'+QuotedWordRx+'))?' +
129129
'\s+TRIGGER\s+'+QuotedWordRx +
130130
'\s+('+Implode('|', comboTiming.Items)+')' +

0 commit comments

Comments
 (0)