fixed mysql function's patters