-
Notifications
You must be signed in to change notification settings - Fork 43
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
Incorrect response on ActiveRecord->count() #7
Comments
Hi, yes this is error ( |
sanchezzzhak
added a commit
that referenced
this issue
Apr 25, 2017
#7: add queryColumn and queryScalar method to Command;
Tnx |
без проблем ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, again.
I've found this issue when working with ActiveRestController.
Index action makes count(*) query (for pagination). So, your component return an array not scalar int value.
Little Example:
class Measuring extends \yii\db\ActiveRecord
class MeasuringReport extends \kak\clickhouse\ActiveRecord
var_dump(\app\models\Measuring::find()->count()); var_dump(\app\models\MeasuringReport::find()->count());
Response is:
Now I'm thinking about way to fix it, we can think together))
The text was updated successfully, but these errors were encountered: