From: Moritz Bunkus Date: Thu, 8 Nov 2012 11:00:10 +0000 (+0100) Subject: SQL-File-Parsing: Off-by-one in $$ ... $$-Syntax für stored procedures behoben X-Git-Tag: release-3.0.0beta1~32 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c4ee17ee3ad87b04d524c1ee6f44b32412c71ee6;p=kivitendo-erp.git SQL-File-Parsing: Off-by-one in $$ ... $$-Syntax für stored procedures behoben --- diff --git a/SL/DBUpgrade2.pm b/SL/DBUpgrade2.pm index a39ef931b..f0d88ffa1 100644 --- a/SL/DBUpgrade2.pm +++ b/SL/DBUpgrade2.pm @@ -164,7 +164,7 @@ sub process_query { pop(@quote_chars); } elsif (length $quote_chars[-1] > 1 && substr($_, $i, length $quote_chars[-1]) eq $quote_chars[-1]) { - $i += length $quote_chars[-1] - 1; + $i += length($quote_chars[-1]) - 1; $char = $quote_chars[-1]; pop(@quote_chars); }