#326 Add Throw Exception (affectedRow is undefined)