Skip to content

Commit

Permalink
Followups
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 26, 2018
1 parent c78bdae commit c3b6990
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/providers/oracle/qgsoracleprovider.cpp
Expand Up @@ -1301,7 +1301,7 @@ bool QgsOracleProvider::addFeatures( QgsFeatureList &flist, QgsFeatureSink::Flag
QVariant value = attributevec.value( fieldId[i], QVariant() );

QString v;
if ( !value.isValid() || value.isNull() )
if ( value.isNull() )
{
if ( mPrimaryKeyAttrs.contains( i ) && !defaultValues.at( i ).isEmpty() )
{
Expand Down
2 changes: 0 additions & 2 deletions tests/src/python/test_provider_oracle.py
Expand Up @@ -63,7 +63,6 @@ def execSQLCommand(self, sql, ignore_errors=False):
self.assertTrue(query.exec_(sql), sql + ': ' + query.lastError().text())
query.finish()

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

# disabled: WIP
def getEditableLayer(self):
return self.getSource()

Expand Down

0 comments on commit c3b6990

Please sign in to comment.