mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-16 14:15:50 -06:00
fix autocomplite bug
При некорректном запросе иногда происходило зависание приложения.
This commit is contained in:
parent
1ee0d14b09
commit
925c8e119f
1 changed files with 4 additions and 1 deletions
|
|
@ -869,13 +869,16 @@ int FormatterSQL::ParseSql(int flags) {
|
|||
}
|
||||
continue;
|
||||
}
|
||||
// no sql command
|
||||
return -3;
|
||||
|
||||
}
|
||||
// end big loop
|
||||
if (str_literal) {
|
||||
return -2; // literal no close
|
||||
}
|
||||
if (bracket.size() > 0)
|
||||
return -1;
|
||||
return -1; // bracet no close
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue