Defect #64

postgres error

Added by Amedeo Amedeo about 15 years ago. Updated about 15 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution: Affected version:

Description

Creating a query specifying "updated" less than 30 days ago return an error:

Processing ProjectsController#list_issues (for 10.3.41.165 at 2007-05-29 11:45:00) [GET] Session ID:
d4068081714490230ecda1de4cfa31d2 Parameters: {"action"=>"list_issues",
"id"=>"1", "controller"=>"projects"}

NoMethodError (undefined method `usec' for #<Date: 4908439/2,0,2299161>):
/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:129:in `quoted_date'
/app/models/query.rb:211:in `statement'
/app/models/query.rb:173:in `each_key'
/app/models/query.rb:173:in `statement'
/app/controllers/projects_controller.rb:262:in `list_issues'

PostgreSQL version 8.1.4

History

#1 Updated by Jean-Philippe Lang about 15 years ago

Thanks.
Fix committed in rev 554.

Also available in: Atom PDF