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

[Statistics view] Mysql2::Error: Unknown column 'changes.commit_date' in 'order clause' #383

Closed
niosHD opened this Issue Mar 15, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@niosHD

niosHD commented Mar 15, 2015

Created new bug like requested in #322.


I just upgraded to the recent development version of the plugin and redmine 3.0.0 and want to report another SQL problem which is related to the statistic functionality.

The Query from repository_commits_stats.rb#L133 crashes with the following error:

Mysql2::Error: Unknown column 'changes.commit_date' in 'order clause': SELECT COUNT(*) AS count_all, commit_date AS commit_date FROM `changes` INNER JOIN `changesets` ON `changesets`.`id` = `changes`.`changeset_id` WHERE (changesets.repository_id = 11) GROUP BY commit_date  ORDER BY `changes`.`commit_date` ASC

I suspect that it is a result of the active record update which came with the new redmine.

@n-rodriguez n-rodriguez self-assigned this Mar 15, 2015

@n-rodriguez n-rodriguez added the bug label Mar 15, 2015

@n-rodriguez n-rodriguez added this to the v1.0.3 milestone Mar 15, 2015

@n-rodriguez n-rodriguez changed the title from Another error in the statistics view to Mysql2::Error: Unknown column 'changes.commit_date' in 'order clause' Mar 16, 2015

@n-rodriguez n-rodriguez changed the title from Mysql2::Error: Unknown column 'changes.commit_date' in 'order clause' to [Statistics view] Mysql2::Error: Unknown column 'changes.commit_date' in 'order clause' Mar 16, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment