Fixes #5800 cast user guid to an int
quoting and escaping the value clause when 'in' is specified as the operator for metadata pairs