code: public boolean hasUnnamedParameters(String originalSql) {
          boolean hasUnnamedParameters = false;
  
          char[] statement = originalSql.toCharArray();
  
          int i = 0;
          while (i < statement.length) {
              int skipToPosition = i;
              while (i < statement.length) {
                  skipToPosition = skipCommentsAndQuotes(statement, i);
                  if (i == skipToPosition) {
                      break;
                  } else {
                      i = skipToPosition;
                  }
              }
              if (i >= statement.length) {
                  break;
              }
              char c = statement[i];
              if (c == '?') {
                  hasUnnamedParameters = true;
                  break;
              }
              i++;
          }
  
          return hasUnnamedParameters;
      }
docs: {@inheritDoc}