diff --git a/plugins/input/postgis/connection.hpp b/plugins/input/postgis/connection.hpp index dbd0b5a75..86fac4031 100644 --- a/plugins/input/postgis/connection.hpp +++ b/plugins/input/postgis/connection.hpp @@ -42,7 +42,7 @@ class Connection int cursorId; public: Connection(std::string const& connection_str) - :cursorId(0) + :cursorId(0) { conn_=PQconnectdb(connection_str.c_str()); if (PQstatus(conn_) != CONNECTION_OK) diff --git a/plugins/input/postgis/postgis.cpp b/plugins/input/postgis/postgis.cpp index cfe435c7b..732d988f7 100644 --- a/plugins/input/postgis/postgis.cpp +++ b/plugins/input/postgis/postgis.cpp @@ -141,8 +141,8 @@ postgis_datasource::postgis_datasource(parameters const& params) s << "select f_geometry_column,srid,type from "; s << GEOMETRY_COLUMNS <<" where f_table_name='" << table_name<<"'"; - if (schema_name.length() > 0) - s <<" and f_table_schema='"<< schema_name <<"'"; + if (schema_name.length() > 0) + s <<" and f_table_schema='"<< schema_name <<"'"; if (geometry_field_.length() > 0) s << " and f_geometry_column = '" << geometry_field_ << "'";