Skip to content

Commit c3b6990

Browse files
committedApr 26, 2018
Followups
1 parent c78bdae commit c3b6990

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
 

‎src/providers/oracle/qgsoracleprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ bool QgsOracleProvider::addFeatures( QgsFeatureList &flist, QgsFeatureSink::Flag
13011301
QVariant value = attributevec.value( fieldId[i], QVariant() );
13021302

13031303
QString v;
1304-
if ( !value.isValid() || value.isNull() )
1304+
if ( value.isNull() )
13051305
{
13061306
if ( mPrimaryKeyAttrs.contains( i ) && !defaultValues.at( i ).isEmpty() )
13071307
{

‎tests/src/python/test_provider_oracle.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def execSQLCommand(self, sql, ignore_errors=False):
6363
self.assertTrue(query.exec_(sql), sql + ': ' + query.lastError().text())
6464
query.finish()
6565

66-
# disabled: WIP
6766
def getSource(self):
6867
# create temporary table for edit tests
6968
self.execSQLCommand('DROP TABLE "QGIS"."EDIT_DATA"', ignore_errors=True)
@@ -79,7 +78,6 @@ def getSource(self):
7978
'test', 'oracle')
8079
return vl
8180

82-
# disabled: WIP
8381
def getEditableLayer(self):
8482
return self.getSource()
8583

0 commit comments

Comments
 (0)
Please sign in to comment.