ln2sql
ln2sql copied to clipboard
'NoneType' object has no attribute 'group'
The following issue raises when I try to load the sql dump file.
if 'TABLE' in line:
111 table_name = re.search("(\w+)", line)
--> 112 table.name = table_name.group(1)
113 if self.thesaurus_object is not None:
114 table.equivalences = self.thesaurus_object.get_synonyms_of_a_word(table.name)
AttributeError: 'NoneType' object has no attribute 'group'
Kindly suggest a fix to this issue.
the SQL dump should be MySQL it seems? especially the syntax where the backticks are used to specify identifiers, show the dump should be MySQL and you might have used some online tool to create the dump.
@harshtikuu I got the same traceback with my Postgres dump. There is no fix for now. Switch to Mysql