mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
+ ident
This commit is contained in:
parent
56b15031d0
commit
f6356731e2
@ -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)
|
||||
|
||||
@ -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_ << "'";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user