The default error screen now reports the full SQL even when not in debug mode as this message is often more helpful than our custom error message.
These functions take care of type conversion and check that the parameters contain legal values. The API now returns a Bad Request error if the format is wrong.