/** * Create a SQLException that the current function can not convert the specific data type. * * @param dataType A data type const from SQLTokenizer. */ SQLException createUnspportedConversion(int dataType) { Object[] params = {SQLTokenizer.getKeyWord(dataType), SQLTokenizer.getKeyWord(getFunction())}; return SmallSQLException.create(Language.UNSUPPORTED_CONVERSION_FUNC, params); }
/** * Create a SQLException that the current function does not support the specific data type. * * @param dataType A data type const from SQLTokenizer. */ SQLException createUnspportedDataType(int dataType) { Object[] params = {SQLTokenizer.getKeyWord(dataType), SQLTokenizer.getKeyWord(getFunction())}; return SmallSQLException.create(Language.UNSUPPORTED_DATATYPE_FUNC, params); }