summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-26 16:01:56 +0200
committerNoel Grandin <noel@peralex.com>2015-11-30 10:34:38 +0200
commitec3f72415850bd865eb030cf2b7edb55b99d4756 (patch)
treee63a41091957725506cbb107a272a9872081e3e5 /connectivity/source/drivers/postgresql
parentd2df03574023b379ac09b1f71cae9e3ba3ac53e2 (diff)
loplugin:unusedfields
Change-Id: Icac4ac1a2614e72bc9ff070819533e09eeb1a864
Diffstat (limited to 'connectivity/source/drivers/postgresql')
-rw-r--r--connectivity/source/drivers/postgresql/pq_statics.cxx4
-rw-r--r--connectivity/source/drivers/postgresql/pq_statics.hxx19
2 files changed, 3 insertions, 20 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_statics.cxx b/connectivity/source/drivers/postgresql/pq_statics.cxx
index 98bf332c5997..3920be3b3934 100644
--- a/connectivity/source/drivers/postgresql/pq_statics.cxx
+++ b/connectivity/source/drivers/postgresql/pq_statics.cxx
@@ -715,9 +715,7 @@ Statics & getStatics()
defTypeInfoMetaData[i].scale,
defTypeInfoMetaData[i].isCurrency,
defTypeInfoMetaData[i].isNullable,
- defTypeInfoMetaData[i].isAutoIncrement,
- defTypeInfoMetaData[i].isReadOnly,
- defTypeInfoMetaData[i].isSigned ) );
+ defTypeInfoMetaData[i].isAutoIncrement ) );
}
p = &statics;
diff --git a/connectivity/source/drivers/postgresql/pq_statics.hxx b/connectivity/source/drivers/postgresql/pq_statics.hxx
index 505eceafd8f2..2b4a75bc393e 100644
--- a/connectivity/source/drivers/postgresql/pq_statics.hxx
+++ b/connectivity/source/drivers/postgresql/pq_statics.hxx
@@ -61,9 +61,7 @@ struct ColumnMetaData
sal_Int32 _scale,
bool _isCurrency,
bool _isNullable,
- bool _isAutoIncrement,
- bool _isReadOnly,
- bool _isSigned ) :
+ bool _isAutoIncrement ) :
columnName( _columnName ),
tableName( _tableName ),
schemaTableName( _schemaTableName ),
@@ -73,9 +71,7 @@ struct ColumnMetaData
scale( _scale ),
isCurrency( _isCurrency ),
isNullable( _isNullable ),
- isAutoIncrement( _isAutoIncrement ),
- isReadOnly( _isReadOnly ),
- isSigned( _isSigned )
+ isAutoIncrement( _isAutoIncrement )
{}
OUString columnName;
@@ -88,21 +84,10 @@ struct ColumnMetaData
bool isCurrency;
bool isNullable;
bool isAutoIncrement;
- bool isReadOnly;
- bool isSigned;
};
typedef std::vector< ColumnMetaData > ColumnMetaDataVector;
-struct TypeDetails
-{
- sal_Int32 dataType;
- sal_Int32 minScale;
- sal_Int32 maxScale; // in case nothing is given in getTypeInfo
- bool isAutoIncrement;
- bool isSearchable;
-};
-
typedef std::unordered_map
<
OUString,