[Glass] Time Index question

BrunoBB via Glass glass at lists.gemtalksystems.com
Fri Feb 19 10:27:06 PST 2016


Tested your code in 3.2.1 and is working OK.

Thanks very much....

The only thing is i do not know is why
_idxBasicCanCompareWithCharacterCollectionInstance: was not implemented in
Object class. 
Anyway everything is working as expected now.


Updated script (just for the record):

| timeField timeCol timeValue |

IndexManager current removeAllIndexes.

timeField := AppFieldTimeValue new.
timeField name: 'time';
	originalValueIsStObject: true;
	originalValue: (Time fromString: '15:00:00');
	setValue: (Time fromString: '15:00:00').

timeCol := RcIdentityBag new.
timeCol add: timeField.

timeCol createEqualityIndexOn: 'value' withLastElementClass: Time.

timeValue := Time fromString: '15:00:00'. 

(GsQuery fromString: 'each.value = timeValue' on: timeCol) 
bind: 'timeValue' to: timeValue; 

View this message in context: http://forum.world.st/Time-Index-question-tp4879024p4879055.html
Sent from the GLASS mailing list archive at Nabble.com.

More information about the Glass mailing list