fix load data insert binary data bug
This commit is contained in:
@ -10,9 +10,9 @@
|
||||
* See the Mulan PubL v2 for more details.
|
||||
*/
|
||||
|
||||
#define USING_LOG_PREFIX SQL_ENG
|
||||
|
||||
#include "sql/engine/expr/ob_expr_to_outfile_row.h"
|
||||
#define USING_LOG_PREFIX SQL_ENG
|
||||
|
||||
#include "sql/engine/expr/ob_expr_to_outfile_row.h"
|
||||
#include <string.h>
|
||||
#include "lib/oblog/ob_log.h"
|
||||
#include "objit/common/ob_item_type.h"
|
||||
@ -123,12 +123,13 @@ int ObExprToOutfileRow::calc_outfile_info(const ObExpr &expr,
|
||||
LOG_WARN("session is null", K(ret));
|
||||
} else if (OB_ISNULL(out_info.print_params_.tz_info_ = session->get_timezone_info())) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("fail to get timezone info", K(ret));
|
||||
} else {
|
||||
out_info.print_params_.use_memcpy_ = true;
|
||||
out_info.is_optional_ = expr.locate_param_datum(ctx, PARAM_OPTIONAL).get_bool();
|
||||
}
|
||||
|
||||
LOG_WARN("fail to get timezone info", K(ret));
|
||||
} else {
|
||||
out_info.print_params_.use_memcpy_ = true;
|
||||
out_info.print_params_.binary_string_print_hex_ = lib::is_oracle_mode();
|
||||
out_info.is_optional_ = expr.locate_param_datum(ctx, PARAM_OPTIONAL).get_bool();
|
||||
}
|
||||
|
||||
for (int i = 0; OB_SUCC(ret) && i < PARAM_SELECT_ITEM; ++i) {
|
||||
OZ(expr.locate_param_datum(ctx, i).to_obj(objs_array[i], expr.args_[i]->obj_meta_,
|
||||
expr.args_[i]->obj_datum_map_));
|
||||
|
||||
Reference in New Issue
Block a user