Bookworm-project / BookwormDB

Tools for text tokenization and encoding
MIT License
84 stars 12 forks source link

MySQL throws unnecessary errors at end of build #90

Closed bmschmidt closed 7 years ago

bmschmidt commented 8 years ago

For most builds, I get a string of errors at the end like this:

ERROR:root:Query failed:
SELECT count(*) FROM wordsheap

/home/bschmidt/bookwormDB/bookwormDB/CreateDatabase.py:100: Warning: Duplicate entry 'Harcourt' for key 'casesens'
  cursor.execute(sql)

ERROR:root:Query failed:
SELECT count(*) FROM houseLookup

ERROR:root:Query failed:
SELECT count(*) FROM speakerLookup

The duplicate entry one is fine. But the rest don't seem to correspond to tables actually not being built. I think they're part of the attempt to see if the memory tables are populated; but on a first build, they don't even exist. At least for initial builds, this error should be quashed because it makes it look like something went wrong.

bmschmidt commented 7 years ago

Fixed https://github.com/Bookworm-project/BookwormDB/commit/c836b9e17dd0cba4b1d8cdab52ff98c73f6ef418