private boolean voltConvertBinaryIntegerLiteral(Session session, Expression lhs, Expression rhs) {
        Expression nonIntegralExpr;
        int whichChild;
        if (lhs.dataType.isIntegralType()) {
            nonIntegralExpr = rhs;
            whichChild = RIGHT;
        }
        else if (rhs.dataType.isIntegralType()) {
            nonIntegralExpr = lhs;
            whichChild = LEFT;
        } else {
            return false;
        }

        return ExpressionValue.voltMutateToBigintType(nonIntegralExpr, this, whichChild);
    }
private boolean voltConvertBinaryIntegerLiteral ( Session session , Expression lhs , Expression rhs ) { Expression nonIntegralExpr ; int whichChild ; if ( lhs . dataType . isIntegralType ( ) ) { nonIntegralExpr = rhs ; whichChild = RIGHT ; } else if ( rhs . dataType . isIntegralType ( ) ) { nonIntegralExpr = lhs ; whichChild = LEFT ; } else { return false ; } return ExpressionValue . voltMutateToBigintType ( nonIntegralExpr , this , whichChild ) ; }
If one child is an integer, and the other is a VARBINARY literal, try to convert the
literal to an integer.