Skip to content
Permalink
Browse files

Update layout oracle connector.py

  • Loading branch information
Ailurupoda committed Jan 23, 2019
1 parent a80f3d0 commit aa3679a3cfb201278ec2b34968f9e92cf943f01a
Showing with 7 additions and 7 deletions.
  1. +7 −7 python/plugins/db_manager/db_plugins/oracle/connector.py
@@ -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:
@@ -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)

0 comments on commit aa3679a

Please sign in to comment.
You can’t perform that action at this time.