Please sign in to comment.
Fix positioning issues with multibyte characters in SQL executions
QScintilla counts characters for the index inside a line and number of bytes for the global positions. When we use index we have to use text lengths (number of characters) and when we use global position, we have to convert previously to byte arrays. Otherwise offsets are produced in executions containing non US-ASCII characters (accented letters, most symbols, etc). The bug could lead to final statements not executed by the execute-all action, more than one line executed by the execute line action and incorrect line references in the log.
- Loading branch information...