2.2.13.4 SET Statement
The form of the SET statement is as follows:
-
…SET PROPERTYNAME guid PROPID id AS name TYPE type…
It is a legacy statement that MUST have no effect on the processing of the rest of the search query, but it MUST be recognized and not be rejected by the protocol server as a malformed search query. The guid component of the syntax MUST be a GUID. The id component of the syntax MUST be a positive integer, either specified in decimal or in hexadecimal. The name component MUST be a valid identifier. The optional TYPE clause MUST be in the following form:
-
…TYPE type…
where the type component is one of the following:
DBTYPE_I2
DBTYPE_I4
DBTYPE_R4
DBTYPE_R8
DBTYPE_CY
DBTYPE_DATE
DBTYPE_BSTR
DBTYPE_BOOL
DBTYPE_STR
DBTYPE_WSTR
set-statement =/ "SET" 1*ws "PROPERTYNAME" 1*ws guid 1*"PROPID" 1*ws property-id 1*ws "AS" 1*ws identifier [1*ws type-clause] guid = 8hex-digit "-" 4hex-digit "-" 4hex-digit "-" 4hex-digit "-" 12hex-digit property-id = positive-decimal / positive-hex type-clause = "TYPE" 1*ws dbtype dbtype = "DBTYPE_I2" / "DBTYPE_I4" / "DBTYPE_R4" / "DBTYPE_R8" / "DBTYPE_CY" / "DBTYPE_DATE" / "DBTYPE_BSTR" / "DBTYPE_BOOL" / "DBTYPE_STR" / "DBTYPE_WSTR"