Skip to content

Commit

Permalink
Merge pull request #96 from alexmojaki/sqlalchemy-reserved
Browse files Browse the repository at this point in the history
Fix for new sqlalchemy version
  • Loading branch information
alexmojaki authored Nov 11, 2021
2 parents 0f0e0b4 + e875eb8 commit 27ac950
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions birdseye/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from sqlalchemy import Sequence, UniqueConstraint, create_engine, Column, Integer, Text, ForeignKey, DateTime, String, \
Index
from sqlalchemy.dialects.mysql import LONGTEXT
from sqlalchemy.dialects.mysql.base import RESERVED_WORDS
from sqlalchemy.exc import OperationalError, InterfaceError, InternalError, ProgrammingError, ArgumentError
from sqlalchemy.ext.declarative import declarative_base, declared_attr
from sqlalchemy.orm import backref, relationship, sessionmaker
Expand All @@ -22,7 +21,13 @@
from typing import List


RESERVED_WORDS.add('function')
try:
from sqlalchemy.dialects.mysql.base import RESERVED_WORDS
except ImportError:
pass
else:
RESERVED_WORDS.add('function')


DB_VERSION = 1

Expand Down

0 comments on commit 27ac950

Please sign in to comment.