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

redmine 2.3 ActiveRecord::StatementInvalid #66

Open
cforce opened this issue Apr 17, 2013 · 0 comments
Open

redmine 2.3 ActiveRecord::StatementInvalid #66

cforce opened this issue Apr 17, 2013 · 0 comments

Comments

@cforce
Copy link

cforce commented Apr 17, 2013

ActiveRecord::StatementInvalid (Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '::float,0)) as value, journalized_id as issueId, prop_key, DATE(journals.created' at line 1: select max(COALESCE(old_value::float,0)) as value, journalized_id as issueId, prop_key, DATE(journals.created_on) AS created_on from journals inner join journal_details on (journals.id = journal_id) inner join issues on (issues.id = journalized_id) where journalized_type = 'Issue' and property = 'attr' and (prop_key = 'estimated_hours' or prop_key = 'done_ratio') and project_id = 21 group by 2, 3, 4 order by created_on desc):
activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in query' activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:inblock in execute'
activerecord (3.2.13) lib/active_record/connection_adapters/abstract_adapter.rb:280:in block in log' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
activerecord (3.2.13) lib/active_record/connection_adapters/abstract_adapter.rb:275:in log' activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:inexecute'
activerecord (3.2.13) lib/active_record/connection_adapters/mysql2_adapter.rb:211:in execute' activerecord (3.2.13) lib/active_record/connection_adapters/mysql2_adapter.rb:215:inexec_query'
activerecord (3.2.13) lib/active_record/connection_adapters/mysql2_adapter.rb:224:in select' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/database_statements.rb:18:inselect_all'
activerecord (3.2.13) lib/active_record/connection_adapters/abstract/query_cache.rb:61:in block in select_all' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/query_cache.rb:75:incache_sql'
activerecord (3.2.13) lib/active_record/connection_adapters/abstract/query_cache.rb:61:in select_all' plugins/AgileDwarf/app/controllers/adburndown_controller.rb:57:inshow'
actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.2.13) lib/abstract_controller/base.rb:167:inprocess_action'
actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in process_action' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:inblock in process_action'
activesupport (3.2.13) lib/active_support/callbacks.rb:491:in _run__647048072__process_action__251737451__callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:405:in__run_callback'
activesupport (3.2.13) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks'
actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:inprocess_action'
actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in block in process_action' activesupport (3.2.13) lib/active_support/notifications.rb:123:inblock in instrument'
activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.13) lib/active_support/notifications.rb:123:ininstrument'
actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.2.13) lib/abstract_controller/base.rb:121:inprocess'
actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.13) lib/action_controller/metal.rb:203:indispatch'
actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.13) lib/action_controller/metal.rb:246:inblock in action'
actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:indispatch'
actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in call' journey (1.0.4) lib/journey/router.rb:68:inblock in call'
journey (1.0.4) lib/journey/router.rb:56:in each' journey (1.0.4) lib/journey/router.rb:56:incall'
actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in call' rack-openid (1.3.1) lib/rack/openid.rb:98:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.5) lib/rack/etag.rb:23:incall'
rack (1.4.5) lib/rack/conditionalget.rb:25:in call' actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in call' plugins/redmine_dmsf/lib/redmine_dmsf/webdav/no_parse.rb:33:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.5) lib/rack/session/abstract/id.rb:210:incontext'
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in call' actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:incall'
activerecord (3.2.13) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in block in call' activesupport (3.2.13) lib/active_support/callbacks.rb:405:in_run__804297825__call__501810084__callbacks'
activesupport (3.2.13) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in_run_call_callbacks'
activesupport (3.2.13) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.13) lib/rails/rack/logger.rb:32:incall_app'
railties (3.2.13) lib/rails/rack/logger.rb:16:in block in call' activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:intagged'
railties (3.2.13) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:incall'
rack (1.4.5) lib/rack/methodoverride.rb:21:in call' rack (1.4.5) lib/rack/runtime.rb:17:incall'
activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.5) lib/rack/lock.rb:15:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall'
railties (3.2.13) lib/rails/engine.rb:479:in call' railties (3.2.13) lib/rails/application.rb:223:incall'
rack (1.4.5) lib/rack/content_length.rb:14:in call' railties (3.2.13) lib/rails/rack/log_tailer.rb:17:incall'
thin (2.0.0.pre) lib/thin/connection.rb:109:in block in call_app' thin (2.0.0.pre) lib/thin/connection.rb:108:incatch'
thin (2.0.0.pre) lib/thin/connection.rb:108:in call_app' thin (2.0.0.pre) lib/thin/connection.rb:90:inprocess'
thin (2.0.0.pre) lib/thin/connection.rb:79:in on_message_complete' thin (2.0.0.pre) lib/thin/connection.rb:40:in<<'
thin (2.0.0.pre) lib/thin/connection.rb:40:in receive_data' eventmachine-le (1.1.5) lib/eventmachine.rb:173:inrun_machine'
eventmachine-le (1.1.5) lib/eventmachine.rb:173:in run' thin (2.0.0.pre) lib/thin/backends/prefork.rb:23:inblock in start'
preforker (0.1.1) lib/preforker/worker.rb:52:in call' preforker (0.1.1) lib/preforker/worker.rb:52:inwork'
preforker (0.1.1) lib/preforker.rb:129:in block (2 levels) in spawn_missing_workers' preforker (0.1.1) lib/preforker.rb:126:infork'
preforker (0.1.1) lib/preforker.rb:126:in block in spawn_missing_workers' preforker (0.1.1) lib/preforker.rb:124:intimes'
preforker (0.1.1) lib/preforker.rb:124:in spawn_missing_workers' preforker (0.1.1) lib/preforker.rb:44:inrun'
thin (2.0.0.pre) lib/thin/backends/prefork.rb:37:in start' thin (2.0.0.pre) lib/thin/server.rb:187:instart'
rack (1.4.5) lib/rack/handler/thin.rb:13:in run' rack (1.4.5) lib/rack/server.rb:268:instart'
railties (3.2.13) lib/rails/commands/server.rb:70:in start' railties (3.2.13) lib/rails/commands.rb:55:inblock in <top (required)>'
railties (3.2.13) lib/rails/commands.rb:50:in tap' railties (3.2.13) lib/rails/commands.rb:50:in<top (required)>'
script/rails:6:in require' script/rails:6:in<top (required)>'
-e:1:in load' -e:1:in

'

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

1 participant