Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interesting bug related to date format
Message
 
 
To
01/07/2010 09:36:44
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01471121
Message ID:
01471178
Views:
48
>Okaaaayyy?
>you use
>
>>  * Using this code - no bug  
>>      INSERT INTO rc(id_pp,dat_b) VALUES (1,{^2010-01-02})      
>>      INSERT INTO rc(id_pp,dat_b) VALUES (1,{^2010-01-02})      
>>      INSERT INTO rc(id_pp,dat_b) VALUES (2,{^2010-01-02})      
>>      INSERT INTO rc(id_pp,dat_b) VALUES (2,{^2010-01-02})      
>>      INSERT INTO rc(id_pp,dat_b) VALUES (1,{^2010-01-02})      
>>      INSERT INTO rc(id_pp,dat_b) VALUES (1,{^2010-01-02})      
>>      INSERT INTO rc(id_pp,dat_b) VALUES (2,{^2010-01-02})      
>>      INSERT INTO rc(id_pp,dat_b) VALUES (2,{^2010-01-02})      
><pre>
>but
><pre>
>> * Using this code - bug  
>> *!*	INSERT INTO rc(id_pp,dat_b) VALUES (1,{01.01.2010})   
>> *!*	INSERT INTO rc(id_pp,dat_b) VALUES (1,{01.01.2010})   
>> *!*	INSERT INTO rc(id_pp,dat_b) VALUES (2,{01.01.2010})   
>> *!*	INSERT INTO rc(id_pp,dat_b) VALUES (2,{01.01.2010})   
>> *!*	INSERT INTO rc(id_pp,dat_b) VALUES (1,{01.02.2010})   
>> *!*	INSERT INTO rc(id_pp,dat_b) VALUES (1,{01.02.2010})   
>> *!*	INSERT INTO rc(id_pp,dat_b) VALUES (2,{01.02.2010})   
>> *!*	INSERT INTO rc(id_pp,dat_b) VALUES (2,{01.02.2010})  
>
>
>the upper is all one date, the lower not
>
>if you use something like
>
>      INSERT INTO rc(id_pp,dat_b) VALUES (1,{^2010-01-01})      
>      INSERT INTO rc(id_pp,dat_b) VALUES (1,{^2010-01-01})      
>      INSERT INTO rc(id_pp,dat_b) VALUES (2,{^2010-01-01})      
>      INSERT INTO rc(id_pp,dat_b) VALUES (2,{^2010-01-01})      
>      INSERT INTO rc(id_pp,dat_b) VALUES (1,{^2010-02-01})      
>      INSERT INTO rc(id_pp,dat_b) VALUES (1,{^2010-02-01})      
>      INSERT INTO rc(id_pp,dat_b) VALUES (2,{^2010-02-01})      
>      INSERT INTO rc(id_pp,dat_b) VALUES (2,{^2010-02-01})      
>
>it happens with your format too.
>
>Problem seems to be within COUNT(DISTINCT ..) of a field grouped and datetime in the group rather then in the datetime format
>
>Agnes

I see, didn't notice the difference. It is still a bug, but probably not very important.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform