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

Operation 'FOD\DBALClickHouse\Connection::beginTransaction' is not supported by platform #61

Open
maxlen opened this issue Jan 21, 2024 · 1 comment

Comments

@maxlen
Copy link

maxlen commented Jan 21, 2024

When I try to execute bin/console doctrine:fixtures:load
I get an error Operation 'FOD\DBALClickHouse\Connection::beginTransaction' is not supported by platform

Could you help me please? How can I execute and apply fixtures?

@constantin-gordienko-quarks-tech

As far as I know, Clickhouse doesn't support transactions. Probably in the latest versions they added experimental functionality, but mostly for batch INSERTs. This is not what transactions are created for in migrations in my opinion (ALTER/CREATE TABLE queries). But you can disable transactions mode directly in migration file by implementing next method:
public function isTransactional(): bool { return false; }

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