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

Extremes in readonly mode #16

Closed
SerafimArts opened this issue Dec 8, 2016 · 4 comments
Closed

Extremes in readonly mode #16

SerafimArts opened this issue Dec 8, 2016 · 4 comments

Comments

@SerafimArts
Copy link
Contributor

SerafimArts commented Dec 8, 2016

PHP Fatal error:  Uncaught ClickHouseDB\DatabaseException: 
    Cannot override setting (extremes) in readonly mode
IN:show databases 
    FORMAT JSON in /home/u/api/vendor/smi2/phpclickhouse/src/Statement.php:166

Maybe can u do not send extremes query arg if this does not set?

Same with: max_execution_time, enable_http_compression and readonly

@isublimity
Copy link
Contributor

Странная ошибка, а пример кода можете дать ( последовательность действий )
пробую

$db->enableExtremes(true)->enableHttpCompression();
print_r($db->showDatabases());

Все ок, может у пользователя ограничения ?

@SerafimArts
Copy link
Contributor Author

@isublimity я про ограничения пользователя и говорю. Либа вообще перестаёт работать, если акк ридонли =)

@isublimity
Copy link
Contributor

Возможно не очень "чисто" получилось

89cbbe7

@SerafimArts
Copy link
Contributor Author

Я думаю, что проще было бы просто игнорить null-значения в конфигах, т.е. true - передаётся 1, для фолс соответсвенно 0, а все null тупо игнорятся.

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