Quote binary literals according to SQL:1999
Check for a result object before using it

A test can fail before there is any result, e.g. when a @dataProvider
annotation is invalid.
Represent exact numeric literals with a specified number of decimal places
Describe behavior when quoting an object that cannot be converted to string