public String parameterize ( ) { Set < Integer > paramIds = new HashSet <> ( ) ; ParameterizationInfo . findUserParametersRecursively ( m_xmlSQL , paramIds ) ; m_adhocUserParamsCount = paramIds . size ( ) ; m_paramzInfo = null ; if ( paramIds . size ( ) == 0 ) { m_paramzInfo = ParameterizationInfo . parameterize ( m_xmlSQL ) ; } // skip plans with pre-existing parameters and plans that don't parameterize // assume a user knows how to cache/optimize these if ( m_paramzInfo != null ) { // if requested output the second version of the parsed plan m_planSelector . outputParameterizedCompiledStatement ( m_paramzInfo . getParameterizedXmlSQL ( ) ) ; return m_paramzInfo . getParameterizedXmlSQL ( ) . toMinString ( ) ; } // fallback when parameterization is return m_xmlSQL . toMinString ( ) ; }
Auto - parameterize all of the literals in the parsed SQL statement .