This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | StringIndexOutOfBoundsException: String index out of range: 140 | ||
---|---|---|---|
Product: | db | Reporter: | Roman Mostyka <romanmostyka> |
Component: | SQL Editor | Assignee: | David Vancouvering <davidvc> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | sustaining |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=47351 | ||
Issue Type: | DEFECT | Exception Reporter: | 47351 |
Attachments: | stacktrace |
Description
Roman Mostyka
2008-04-16 12:48:03 UTC
Created attachment 60270 [details]
stacktrace
I set priority to P2 because I don't see any workaround. If there is some, please let me know and downgrade priority back to P3. I was able to reproduce. It's an off-by-one error in my parsing. The workaround is to add an extra space after the last character in your command text. Then your example fails with a syntax error. I think I gave you this example, sorry. Try delimiter ?? create procedure test() begin declare x tinyint; select count(*) from person into x; if x = 2 then select * from trip; end if; end?? delimiter ; *with* the extra space at the end. Actually, you don't need to say 'delimiter ;' at the end if you're not going to run any more SQL after declaring stored proc. You can validate the stored proc is there by opening up the Procedures node for the connection... Verified with trunk build 080422. Do push into patch1 branch. The fix has been ported into the release61_fixes branch: http://hg.netbeans.org/release61_fixes/rev/9d5bff554439 |