1
0

fix ChannelDB.compare_channels: was raising "too many SQL variables"

sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) too many SQL variables
This commit is contained in:
SomberNight
2019-05-26 05:27:29 +02:00
committed by ThomasV
parent 60cd885f74
commit cffb89002c
2 changed files with 13 additions and 7 deletions

View File

@@ -10,6 +10,10 @@ from sqlalchemy.orm import sessionmaker
from .logging import Logger
# https://stackoverflow.com/questions/26971050/sqlalchemy-sqlite-too-many-sql-variables
SQLITE_LIMIT_VARIABLE_NUMBER = 999
def sql(func):
"""wrapper for sql methods"""
def wrapper(self, *args, **kwargs):