original_string: protected function _fromDualIfy($queryString)
      {
          $statement = strtolower(trim($queryString));
          if (strpos($statement, 'select') !== 0 || preg_match('/ from /', $statement)) {
              return $queryString;
          }
          //Doing a SELECT without a FROM (e.g. "SELECT 1 + 1") does not work in Oracle:
          //need to have "FROM DUAL" at the end
          return "{$queryString} FROM DUAL";
      }
code: protected function _fromDualIfy($queryString)
      {
          $statement = strtolower(trim($queryString));
          if (strpos($statement, 'select') !== 0 || preg_match('/ from /', $statement)) {
              return $queryString;
          }
          //Doing a SELECT without a FROM (e.g. "SELECT 1 + 1") does not work in Oracle:
          //need to have "FROM DUAL" at the end
          return "{$queryString} FROM DUAL";
      }
code_tokens: protected function _fromDualIfy ( $ queryString ) { $ statement = strtolower ( trim ( $ queryString ) ) ; if ( strpos ( $ statement , 'select' ) !== 0 || preg_match ( '/ from /' , $ statement ) ) { return $ queryString ; } //Doing a SELECT without a FROM (e.g. "SELECT 1 + 1") does not work in Oracle: //need to have "FROM DUAL" at the end return "{$queryString} FROM DUAL" ; }
docstring: Add "FROM DUAL" to SQL statements that are SELECT statements
  with no FROM clause specified
  
  @param string $queryString query
  @return string
docstring_tokens: Add FROM DUAL to SQL statements that are SELECT statements with no FROM clause specified