@@ -561,19 +561,19 @@ func keys_FIELDS_test(mc *mockServer) error {
561561 Do ("SCAN" , "fleet" , "WHERE" , "hello.world" , "<" , `uom` , "IDS" ).JSON ().Str (`{"ok":true,"ids":["truck1","truck2"],"count":2,"cursor":0}` ),
562562 Do ("SCAN" , "fleet" , "WHERE" , "hello.world" , "!=" , `tom` , "IDS" ).JSON ().Str (`{"ok":true,"ids":["truck1"],"count":1,"cursor":0}` ),
563563 // Test REGEX on FIELD
564- Do ("SCAN" , "fleet" , "WHERE" , "regex( hello.world, 'tom.*') " , "IDS" ).JSON ().Str (`{"ok":true,"ids":["truck2"],"count":1,"cursor":0}` ),
565- Do ("SCAN" , "fleet" , "WHERE" , "regex( hello.world, 'foo.*') " , "IDS" ).JSON ().Str (`{"ok":true,"ids":[],"count":0,"cursor":0}` ),
566- Do ("SCAN" , "fleet" , "WHERE" , "regex( hello.world, '(*') " , "IDS" ).JSON ().Str (`{"ok":true,"ids":[],"count":0,"cursor":0}` ),
564+ Do ("SCAN" , "fleet" , "WHERE" , "hello.world =~ 'tom.*'" , "IDS" ).JSON ().Str (`{"ok":true,"ids":["truck2"],"count":1,"cursor":0}` ),
565+ Do ("SCAN" , "fleet" , "WHERE" , "hello.world =~ 'foo.*'" , "IDS" ).JSON ().Str (`{"ok":true,"ids":[],"count":0,"cursor":0}` ),
566+ Do ("SCAN" , "fleet" , "WHERE" , "hello.world =~ '(*'" , "IDS" ).JSON ().Str (`{"ok":true,"ids":[],"count":0,"cursor":0}` ),
567567
568568 Do ("SET" , "fleet" , "truck1" , "OBJECT" , `{"type":"Feature","geometry":{"type":"Point","coordinates":[-112,33]},"properties":{"speed":50},"asdf":"Adsf"}` ).JSON ().OK (),
569569 Do ("SCAN" , "fleet" , "WHERE" , "properties.speed" , ">" , 49 , "IDS" ).JSON ().Str (`{"ok":true,"ids":["truck1"],"count":1,"cursor":0}` ),
570570 Do ("SCAN" , "fleet" , "WHERE" , "properties.speed" , ">" , 50 , "IDS" ).JSON ().Str (`{"ok":true,"ids":[],"count":0,"cursor":0}` ),
571571 Do ("SCAN" , "fleet" , "WHERE" , "properties.speed" , "<" , 51 , "IDS" ).JSON ().Str (`{"ok":true,"ids":["truck1","truck2"],"count":2,"cursor":0}` ),
572572 // Test REGEX on OBJECT properties
573573 Do ("SET" , "fleet" , "truck3" , "OBJECT" , `{"type":"Feature","geometry":{"type":"Point","coordinates":[-112,33]},"properties":{"name":"truck01"}}` ).JSON ().OK (),
574- Do ("SCAN" , "fleet" , "WHERE" , "regex( properties.name, 'truck.*') " , "IDS" ).JSON ().Str (`{"ok":true,"ids":["truck3"],"count":1,"cursor":0}` ),
575- Do ("SCAN" , "fleet" , "WHERE" , "regex( properties.name, 'foo.*') " , "IDS" ).JSON ().Str (`{"ok":true,"ids":[],"count":0,"cursor":0}` ),
576- Do ("SCAN" , "fleet" , "WHERE" , "regex( properties.name, '(*') " , "IDS" ).JSON ().Str (`{"ok":true,"ids":[],"count":0,"cursor":0}` ),
574+ Do ("SCAN" , "fleet" , "WHERE" , "properties.name =~ 'truck.*'" , "IDS" ).JSON ().Str (`{"ok":true,"ids":["truck3"],"count":1,"cursor":0}` ),
575+ Do ("SCAN" , "fleet" , "WHERE" , "properties.name =~ 'foo.*'" , "IDS" ).JSON ().Str (`{"ok":true,"ids":[],"count":0,"cursor":0}` ),
576+ Do ("SCAN" , "fleet" , "WHERE" , "properties.name =~ '(*'" , "IDS" ).JSON ().Str (`{"ok":true,"ids":[],"count":0,"cursor":0}` ),
577577
578578 Do ("DROP" , "fleet" ).JSON ().OK (),
579579 Do ("SET" , "fleet" , "truck1" , "FIELD" , "speed" , "50" , "POINT" , "-112" , "33" ).JSON ().OK (),
0 commit comments