1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Use of newly introduced schema-based name resolution for (#3138)

Oracle-compatible functions
Server changed the way to resolve functions' names and we need to adapt.
This commit is contained in:
Sergey Zefirov
2024-03-11 18:17:46 +03:00
committed by GitHub
parent 8f91029f6a
commit c01e1f4ed8

View File

@ -3883,6 +3883,17 @@ ReturnedColumn* buildFunctionColumn(Item_func* ifp, gp_walk_info& gwi, bool& non
cal_connection_info* ci = static_cast<cal_connection_info*>(get_fe_conn_info_ptr());
string funcName = ifp->func_name();
const Schema* funcSchema = ifp->schema();
if (funcSchema)
{
idbassert(funcSchema->name().str);
string funcSchemaName(funcSchema->name().str, funcSchema->name().length);
if (funcSchemaName == "oracle_schema")
{
// XXX: this is a shortcut.
funcName = funcName + "_oracle";
}
}
FuncExp* funcExp = FuncExp::instance();
Func* functor;
FunctionColumn* fc = NULL;