mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-25 22:03:16 -06:00
fix autoselect query
Если в многострочном комментарии встрачался символ ";" то он ошибочно считался окончанием запроса.
This commit is contained in:
parent
cf7314facb
commit
1b9c403a72
1 changed files with 9 additions and 2 deletions
|
|
@ -1097,7 +1097,10 @@ long ctlSQLBox::SelectQuery(int startposition)
|
|||
ch = GetCharAt(pos);
|
||||
st = GetStyleAt(pos) & 0x1F;
|
||||
if ((ch == ';') &&
|
||||
st != 2 && st != 6 && st != 7)
|
||||
st != wxSTC_SQL_COMMENTLINE &&
|
||||
st != wxSTC_SQL_STRING &&
|
||||
st != wxSTC_SQL_CHARACTER &&
|
||||
st!= wxSTC_SQL_COMMENT)
|
||||
{
|
||||
pend=pos;
|
||||
break;
|
||||
|
|
@ -1118,7 +1121,11 @@ long ctlSQLBox::SelectQuery(int startposition)
|
|||
ch = GetCharAt(pos);
|
||||
st = GetStyleAt(pos) & 0x1F;
|
||||
if ((ch == ';') &&
|
||||
st != 2 && st != 6 && st != 7)
|
||||
st != wxSTC_SQL_COMMENTLINE &&
|
||||
st != wxSTC_SQL_STRING &&
|
||||
st != wxSTC_SQL_CHARACTER &&
|
||||
st != wxSTC_SQL_COMMENT
|
||||
)
|
||||
{
|
||||
//pstart=pos+1;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue