sqlparser/helpers.cpp
// Check if it is specified to convert function to procedure
Check if it is specified to convert function to procedure
Check if it is specified to convert function to procedure
bool SqlParser::IsFuncToProc(Token *name)
{
	if(name == NULL || name->str == NULL)
		return false;
	std::string sname(name->str, name->len);
	std::transform(sname.begin(), sname.end(), sname.begin(), ::tolower);
	StringMap::iterator i = _func_to_sp_map.find(sname);
	if(i != _func_to_sp_map.end())
     return true;
	return false;
}
bool SqlParser :: IsFuncToProc ( Token * name ) { if ( name == NULL || name -> str == NULL ) return false ; std :: string sname ( name -> str , name -> len ) ; std :: transform ( sname . begin ( ) , sname . end ( ) , sname . begin ( ) , :: tolower ) ; StringMap :: iterator i = _func_to_sp_map . find ( sname ) ; if ( i != _func_to_sp_map . end ( ) ) return true ; return false ; }
Check if it is specified to convert function to procedure
Check if it is specified to convert function to procedure