regression test for argument out of range exception when parsing invalid sql