Fix some warning
This commit is contained in:
parent
ec8c3ff5ec
commit
31afc6fcbf
3 changed files with 5 additions and 4 deletions
|
|
@ -538,7 +538,7 @@ void QueryTab::markError(const Pgsql::ErrorDetails &details)
|
|||
|
||||
int length = 0;
|
||||
if (details.state == "42703") {
|
||||
int pos = details.messagePrimary.find('"');
|
||||
std::size_t pos = details.messagePrimary.find('"');
|
||||
if (pos != std::string::npos) {
|
||||
int pos2 = details.messagePrimary.find('"', pos+1);
|
||||
if (pos2 != std::string::npos) {
|
||||
|
|
@ -547,7 +547,7 @@ void QueryTab::markError(const Pgsql::ErrorDetails &details)
|
|||
}
|
||||
}
|
||||
else if (details.state == "42P01") {
|
||||
int pos = details.messagePrimary.find('"');
|
||||
std::size_t pos = details.messagePrimary.find('"');
|
||||
if (pos != std::string::npos) {
|
||||
int pos2 = details.messagePrimary.find('"', pos+1);
|
||||
if (pos2 != std::string::npos) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue