Avoid polling when statement_timeout is 0 (disabled)