Skip to content

Commit

Permalink
Update layout oracle connector.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ailurupoda committed Jan 23, 2019
1 parent a80f3d0 commit aa3679a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions python/plugins/db_manager/db_plugins/oracle/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,16 +475,16 @@ def updateCache(self, tableList, schema=None):

def singleGeomTypes(self, geomtypes, srids):
"""Intelligent wkbtype grouping (multi with non multi)"""
if (QgsWkbTypes.Polygon in geomtypes and
QgsWkbTypes.MultiPolygon in geomtypes):
if (QgsWkbTypes.Polygon in geomtypes
and QgsWkbTypes.MultiPolygon in geomtypes):
srids.pop(geomtypes.index(QgsWkbTypes.Polygon))
geomtypes.pop(geomtypes.index(QgsWkbTypes.Polygon))
if (QgsWkbTypes.Point in geomtypes and
QgsWkbTypes.MultiPoint in geomtypes):
if (QgsWkbTypes.Point in geomtypes
and QgsWkbTypes.MultiPoint in geomtypes):
srids.pop(geomtypes.index(QgsWkbTypes.Point))
geomtypes.pop(geomtypes.index(QgsWkbTypes.Point))
if (QgsWkbTypes.LineString in geomtypes and
QgsWkbTypes.MultiLineString in geomtypes):
if (QgsWkbTypes.LineString in geomtypes
and QgsWkbTypes.MultiLineString in geomtypes):
srids.pop(geomtypes.index(QgsWkbTypes.LineString))
geomtypes.pop(geomtypes.index(QgsWkbTypes.LineString))
if QgsWkbTypes.Unknown in geomtypes and len(geomtypes) > 1:
Expand Down Expand Up @@ -1336,7 +1336,7 @@ def deleteTableColumn(self, table, column):

def updateTableColumn(self, table, column, new_name=None,
data_type=None, not_null=None,
default=None, comment=None):
default=None, comment=None):
"""Update properties of a column in a table."""

schema, tablename = self.getSchemaTableName(table)
Expand Down

0 comments on commit aa3679a

Please sign in to comment.