ln2sql icon indicating copy to clipboard operation
ln2sql copied to clipboard

'NoneType' object has no attribute 'group'

Open harshtikuu opened this issue 6 years ago • 2 comments

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.

harshtikuu avatar Jan 15 '19 18:01 harshtikuu

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.

abhijithneilabraham avatar Jun 05 '20 22:06 abhijithneilabraham

@harshtikuu I got the same traceback with my Postgres dump. There is no fix for now. Switch to Mysql

aitoehigie avatar Jul 27 '21 14:07 aitoehigie