View Issue Details

IDProjectCategoryView StatusLast Update
0005162JEDI VCL00 JVCL Componentspublic2011-06-10 16:09
Reporterm_ThAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.38 
Target Version3.40Fixed in Version3.40 
Summary0005162: TjvExprParser - Date/Time, Boolean and 'Like' support
DescriptionIf TjvExprParser is used on Date/Time and Boolean variants, it produces wrong results (because the values are seen as strings). To see, create a TjvMemoryData with DateTime fields and assign the Filter property to filter the data on such fields.

Also, added the '~' (like) operator. Reason:

To express an exact string match on one field and wildcard match on other fields. (eg. Selected = '*' and 'FileName ~ '*.doc')

Also, some minor bugfixes and code consolidation were made.

Please find the attached file for the code. The changed parts are commented with //mTh
TagsNo tags attached.

Activities

2010-02-09 10:47

 

JvExprParser.pas (25,282 bytes)

jfudickar

2010-02-09 19:20

developer   ~0017192

Did you have a small sample which shows the new/fixed behaviour?

2010-02-13 10:09

 

FilterExample.zip (27,766 bytes)

m_Th

2010-02-13 10:12

reporter   ~0017194

The 'FilterExample.zip' *SUPERSEDES* the previous attached file (how do I delete it?).

It contains:
- a newer JvExprParser.pas file (with more bugs fixed and enhancements - support for Case Insensitive parsing - see the new property)
- a newer JvMemoryDataSet.pas file (with some bugs fixed - see Mantis#5161 also)
- a sample demo for both the above files.

obones

2010-03-09 11:32

administrator   ~0017277

Thanks, this is now in SVN

Issue History

Date Modified Username Field Change
2010-02-09 10:47 m_Th New Issue
2010-02-09 10:47 m_Th File Added: JvExprParser.pas
2010-02-09 19:20 jfudickar Note Added: 0017192
2010-02-13 10:09 m_Th File Added: FilterExample.zip
2010-02-13 10:12 m_Th Note Added: 0017194
2010-03-09 11:32 obones Note Added: 0017277
2010-03-09 11:32 obones Assigned To => obones
2010-03-09 11:32 obones Status new => resolved
2010-03-09 11:32 obones Resolution open => fixed
2010-03-09 11:32 obones Fixed in Version => Daily / SVN
2010-03-09 11:32 obones Target Version => 3.40 - not yet released
2011-06-10 16:09 obones Fixed in Version Daily / SVN => 3.40