summaryrefslogtreecommitdiffstats
path: root/populate.py
diff options
context:
space:
mode:
Diffstat (limited to 'populate.py')
-rw-r--r--populate.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/populate.py b/populate.py
index ab06ed0..bca7f01 100644
--- a/populate.py
+++ b/populate.py
@@ -74,6 +74,8 @@ def handleOneDocument(infile, conn, length):
rowcount = cur.execute(UPDATE_NGRAM_DML, (words_str,)).rowcount
#print(rowcount)
+ assert rowcount <= 1
+
if 0 == rowcount:
cur.execute(INSERT_NGRAM_DML, (words_str,))