This commit is contained in:
Artem Pavlenko 2009-02-18 16:38:54 +00:00
parent 56b15031d0
commit f6356731e2
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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_ << "'";