Re: Hazardous problem making arithmetic operation on date fields.

2001-10-02 Thread Paul DuBois
At 5:22 PM +0200 10/2/01, Malko Malko wrote: >>Description: >When multiplying a date field with a number( any type ) field >for some values in any of these 2 fields mysql did nt answer to >queries. >>How-To-Repeat: ># ># Table structure for table 'testdate' ># > >CREATE TABLE testdate (

Re: Hazardous problem making arithmetic operation on date fields.

2001-10-02 Thread Carl Troein
Malko Malko writes: > mysql> select date,coef,sec_to_time(time_to_sec(date*coef)) from testdate; Why do you multiply the date with a number and then convert it to a number? Shouldn't it be the other way around? :-O //C -- Carl Troein - CĂ­rdan / Istari-PixelMagic - UIN 16353280 [EMAIL PROTE

Hazardous problem making arithmetic operation on date fields.

2001-10-02 Thread Malko Malko
>Description: When multiplying a date field with a number( any type ) field for some values in any of these 2 fields mysql did nt answer to queries. >How-To-Repeat: # # Table structure for table 'testdate' # CREATE TABLE testdate ( ID int(11) NOT NULL auto_increment, DATE time DEFA