[Build] fix build fail when WITH_MYSQL=OFF (#18021)

This commit is contained in:
Pxl
2023-03-23 14:01:21 +08:00
committed by GitHub
parent 2d4f5886ab
commit 4b626d260a
5 changed files with 15 additions and 5 deletions

View File

@ -73,13 +73,13 @@ Status VMysqlScanNode::prepare(RuntimeState* state) {
// new one scanner
_mysql_scanner.reset(new (std::nothrow) MysqlScanner(_my_param));
if (_mysql_scanner.get() == nullptr) {
if (_mysql_scanner == nullptr) {
return Status::InternalError("new a mysql scanner failed.");
}
_text_converter.reset(new (std::nothrow) TextConverter('\\'));
if (_text_converter.get() == nullptr) {
if (_text_converter == nullptr) {
return Status::InternalError("new a text convertor failed.");
}