search for: cast_to_tim

Displaying 3 results from an estimated 3 matches for "cast_to_tim".

Did you mean: cast_to_time
2006 Jun 21
0
SQLServer Timestamp parsing problem in sqlserver_adapter.rb
..., 0, 0, 224, 43]:Array from c:/ruby/lib/ruby/1.8/date/format.rb:253:in ''_parse'' from c:/ruby/lib/ruby/1.8/parsedate.rb:9:in ''parsedate'' from c:/ruby/lib/ruby/1.8/gems/activerecord-1.14.2/lib/active_record_cnnection_adapters/sqlserver_adapter.rb:92:in ''cast_to_time'' from c:/ruby/lib/ruby/1.8/gems/activerecord-1.14.2/lib/active_record_cnnection_adapters/sqlserver_adapter.rb:82:in ''type_cast'' ... I think the problem comes down to sqlserver_adapter.rb, in the type_cast method, asking timestamps to cast_to_time instead of something...
2006 Jul 17
18
Inserting datetime value into SQL Server
I have a SQL Server column named StartTime of (SQL Server) type datetime If I attempt to set the attribute using public def StartTime=(time) write_attribute(:StartTime, "{ts ''1899-12-30 #{time.hour}:#{time.min}:#{time.sec}''}") end it''s inserting a NULL value. Anyone else able to successfully insert a date time value into a SQL Server table using
2006 Mar 25
0
Oracle driver doesn''t support expressions for default date values
...39;'m working with a legacy Oracle db which has trunc(SYSDATE) and TO_DATE(''...'',''...'') as default values for some date columns. The oracle driver craps out with these default values or sets them to the default Jan 1, 2000 date. The culprit appears to be the cast_to_time method in oracle_adapter.rb. Any pointers on how to change the driver to ''eval'' the SYSDATE and TO_DATE default values? Evaling these values probably won''t work because that needs to be done at the time of record insertion however. Thanks Hammed -------------- next pa...