when do we usually get the following error in SQLAlchemy?
sqlalchemy.exc.OperationalError: (OperationalError) (1050, "Table 'foobar' already exists")
The foobar table already exists, but why does SQLAlchemy try to create the table when it is already present. I assume that he should not create the table if it already exists.
I use the following syntax to create a table:
t = Table('foobar', metadata, Column('col1', String(50), primary_key=True), Column('col2', String(100)), mysql_engine='InnoDB', mysql_charset='utf8')
(I call the same program in parallel 10 times)
source share