diff --git a/dbcon/execplan/operator.cpp b/dbcon/execplan/operator.cpp index 5f0fa770c..a2b097470 100644 --- a/dbcon/execplan/operator.cpp +++ b/dbcon/execplan/operator.cpp @@ -280,12 +280,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: @@ -295,7 +295,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 ce3d3542d..8992411cd 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 aa8c96ba4..3b765a916 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