Fixed SQL instruction case