Skip to content

Commit e6e6189

Browse files
committedOct 28, 2017
We cannot test to insert NULL with NOT NULL constraints
1 parent 76746e7 commit e6e6189

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed
 

‎tests/src/python/test_provider_postgres.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -329,15 +329,6 @@ def onError(message):
329329
self.assertEqual(f['val'], feature['val'])
330330
self.assertEqual(f['name'], feature['name'])
331331

332-
f = QgsFeature(vl.fields())
333-
f['gid'] = 101
334-
f['val'] = NULL
335-
f['name'] = NULL
336-
vl.addFeature(f)
337-
feature = next(vl.getFeatures('"gid" = 101'))
338-
self.assertEqual(f['val'], feature['val'])
339-
self.assertEqual(f['name'], feature['name'])
340-
341332
def testNestedInsert(self):
342333
tg = QgsTransactionGroup()
343334
tg.addLayer(self.vl)

0 commit comments

Comments
 (0)
Please sign in to comment.