You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
[2] pry(main)> GeoZone::UserUpdate.select(:user_id).distinct.count
=> 14261
[3] pry(main)> require 'squeel'
=> true
[4] pry(main)> GeoZone::UserUpdate.select(:user_id).distinct.count
ActiveRecord::StatementInvalid: Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') FROM `user_update` WHERE `user_update`.`latitude` IS NOT NULL AND `user_update' at line 1: SELECT DISTINCT COUNT(DISTINCT ) FROM `user_update` WHERE `user_update`.`latitude` IS NOT NULL AND `user_update`.`longitude` IS NOT NULL
from /home/samuel/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `query'
Distinct clause is empty for some reason: SELECT DISTINCT COUNT(DISTINCT )
The text was updated successfully, but these errors were encountered:
Work fine without squeel..
Distinct clause is empty for some reason:
SELECT DISTINCT COUNT(DISTINCT )
The text was updated successfully, but these errors were encountered: