Skip to content

Commit

Permalink
Changed octet_length to support just BLOB types.
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagokepe committed May 14, 2020
1 parent 700b72f commit 5def32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/function/scalar/string/length.cpp
Expand Up @@ -38,7 +38,7 @@ void LengthFun::RegisterFunction(BuiltinFunctions &set) {
set.AddFunction(ScalarFunction("bit_length", {SQLType::VARCHAR}, SQLType::BIGINT,
ScalarFunction::UnaryFunction<string_t, int64_t, BitLenOperator, true>));
// length for BLOB type
set.AddFunction(ScalarFunction("octet_length", {SQLType::VARCHAR}, SQLType::BIGINT,
set.AddFunction(ScalarFunction("octet_length", {SQLType::BLOB}, SQLType::BIGINT,
ScalarFunction::UnaryFunction<string_t, int64_t, StrLenOperator, true>));
}

Expand Down

0 comments on commit 5def32a

Please sign in to comment.