mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 06:05:49 -06:00
fix warning clang
This commit is contained in:
parent
2cde1c04f4
commit
2583f616d9
3 changed files with 11 additions and 11 deletions
|
|
@ -1047,9 +1047,6 @@ bool pgConn::IsAlive()
|
|||
|
||||
int pgConn::GetStatus() const
|
||||
{
|
||||
if (!this)
|
||||
return PGCONN_BAD;
|
||||
|
||||
if (conn)
|
||||
((pgConn *)this)->connStatus = PQstatus(conn);
|
||||
|
||||
|
|
@ -1246,7 +1243,7 @@ bool pgConn::TableHasColumn(wxString schemaname, wxString tblname, const wxStrin
|
|||
if (schemaname.IsEmpty())
|
||||
schemaname = wxT("public");
|
||||
|
||||
if (this && GetStatus() == PGCONN_OK)
|
||||
if (GetStatus() == PGCONN_OK)
|
||||
{
|
||||
tblname.Replace(wxT("\\"), wxT("\\\\"));
|
||||
tblname.Replace(wxT("'"), wxT("''"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue