View Issue Details

IDProjectCategoryView StatusLast Update
0020222MMW 5DB / Backuppublic2023-09-29 07:58
ReporterLudek Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status closedResolutionreopened 
Product Version5.1 
Target Version5.1Fixed in Version5.1 
Summary0020222: Numeric operators for custom fields doesn't work correctly for date values
DescriptionNumeric operators for custom fields have been added in 2814 ( 0018111 )

This works fine for integers, but not for date like '2023/05/12'
= 2023/05/12 ==> True
<= 2023/05/12 ==> False ... unexpected
>= 2023/05/12 ==> True
> 2023/05/11 ==> True
< 2023/05/11 ==> False
> 2023/05/13 ==> True ... unexpected
< 2023/05/13 ==> False ... unexpected
Additional Informationhttps://www.mediamonkey.com/forum/viewtopic.php?p=512797#p512797
TagsNo tags attached.
Fixed in build2817

Relationships

related to 0018111 closedLudek Custom fields numeric support 

Activities

Ludek

2023-09-07 15:46

developer   ~0072744

Last edited: 2023-09-07 15:46

I see, this is because of the SQL constructed as
SELECT Songs.* FROM Songs WHERE CAST(Songs.Custom1 AS INT)>2023/05/12 AND (Songs.Custom1 <> '' )
where '/' is actually a division operator.

Ludek

2023-09-08 21:45

developer   ~0072750

Fixed in 2815

lowlander

2023-09-18 18:50

developer   ~0072803

Verified on 2815.

1) < and <= include all non-value files. I'm not sure this is desirable or not. (can be solved by using a second Criteria setting field to Is Known.

2) Second issue raised on forum was not fixed. Changing between operators like <, >= AND contains, equals removes user value on 2815. User should be left as set previously.

Ludek

2023-09-22 17:49

developer   ~0072862

Last edited: 2023-09-22 19:08

1/2) fixed in 2817

peke

2023-09-29 07:58

developer   ~0072950

Verified 2817