Add error codes for sql module, !! Please Read Task Description Carefully!!

This commit is contained in:
obdev
2023-08-01 17:18:33 +00:00
committed by ob-robot
parent a706aa36a0
commit a56c5b6dec
63 changed files with 106 additions and 67 deletions

View File

@ -119,6 +119,7 @@ public:
} else if (OB_FAIL(params_.stmt_factory_->create_stmt(stmt))) {
SQL_RESV_LOG(WARN, "create stmt failed", K(ret));
} else if (OB_ISNULL(stmt)) {
ret = common::OB_ERR_UNEXPECTED;
SQL_RESV_LOG(WARN, "create stmt success, but stmt is null");
} else {
stmt_ = stmt;