Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

метод cleaner вызывает эксепшн #5

Closed
dis-aster opened this issue Dec 26, 2016 · 3 comments
Closed

метод cleaner вызывает эксепшн #5

dis-aster opened this issue Dec 26, 2016 · 3 comments

Comments

@dis-aster
Copy link

вызов метода

        if self.check_diff():
            self.cleaner()
            return 1

приводит к
pymysql.err.NotSupportedError: (1235, "This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'")

@Prototype-X
Copy link
Owner

Приветствую. В данном случае это ограничение движка БД, возможно это вылечится установкой свежей версии MariaDB/MySQL. Замечу, что у SQLite/PostgreSQL таких проблем нет. Работоспособность последних версий тестировалась на SQLite/PostgreSQL. Допускаю что это возможно не единственное место в коде, где придется столкнуться с ограничениями движка БД MariaDB/MySQL, поскольку SQL запросы стали более сложными из-за добавления новых возможностей. Рекомендую воспользоваться SQLite/PostgreSQL.

@dis-aster
Copy link
Author

Добрый день.
К сожалению, обновлением софта это не решится, так как limit в subquery не поддерживается ни в MySQL, ни в MariaDB, ни в Percona-server: https://dev.mysql.com/doc/refman/5.6/en/subquery-restrictions.html
Спасибо, учту вашу рекомендацию.

@Prototype-X
Copy link
Owner

MySQL больше не поддерживается

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants