diff --git a/dbcon/execplan/operator.cpp b/dbcon/execplan/operator.cpp index de5101c4d..ef952e0ac 100644 --- a/dbcon/execplan/operator.cpp +++ b/dbcon/execplan/operator.cpp @@ -271,12 +271,12 @@ void Operator::reverseOp() case OP_NE: fOp = OP_EQ; - fData = "="; + fData = '='; break; case OP_GT: fOp = OP_LT; - fData = "<"; + fData = '<'; break; case OP_GE: @@ -286,7 +286,7 @@ void Operator::reverseOp() case OP_LT: fOp = OP_GT; - fData = ">"; + fData = '>'; break; case OP_LE: diff --git a/utils/funcexp/func_math.cpp b/utils/funcexp/func_math.cpp index 7ef56be70..8753991cd 100644 --- a/utils/funcexp/func_math.cpp +++ b/utils/funcexp/func_math.cpp @@ -2005,7 +2005,7 @@ string Func_format::getStrVal(Row& row, FunctionParm& parm, bool& isNull, while ((comma -= 3) > end) { - value.insert(comma, ","); + value.insert(comma, 1, ','); } return value; diff --git a/utils/funcexp/func_round.cpp b/utils/funcexp/func_round.cpp index 9f265f961..967e64f38 100644 --- a/utils/funcexp/func_round.cpp +++ b/utils/funcexp/func_round.cpp @@ -551,7 +551,7 @@ IDB_Decimal Func_round::getDecimalVal(Row& row, FunctionParm& parm, bool& isNull else { if (-s >= (int32_t)value.size()) - value = "0"; + value = '0'; else { // check to see if last digit needs to be rounded up @@ -621,7 +621,7 @@ IDB_Decimal Func_round::getDecimalVal(Row& row, FunctionParm& parm, bool& isNull else { if (-s >= (int32_t)value.size()) - value = "0"; + value = '0'; else { // check to see if last digit needs to be rounded up