Skip to content

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

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

Closed
niosHD opened this issue Mar 15, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@niosHD
Copy link

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 this to the v1.0.3 milestone Mar 15, 2015
@n-rodriguez n-rodriguez changed the title Another error in the statistics view Mysql2::Error: Unknown column 'changes.commit_date' in 'order clause' Mar 16, 2015
@n-rodriguez n-rodriguez changed the title Mysql2::Error: Unknown column 'changes.commit_date' in 'order clause' [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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants