From 5def32afd251b470596422fd5b60ba785544a31d Mon Sep 17 00:00:00 2001 From: Tiago Kepe Date: Thu, 14 May 2020 17:06:06 -0300 Subject: [PATCH] Changed octet_length to support just BLOB types. --- src/function/scalar/string/length.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/function/scalar/string/length.cpp b/src/function/scalar/string/length.cpp index 832d13003ea..8f9d2ed351b 100644 --- a/src/function/scalar/string/length.cpp +++ b/src/function/scalar/string/length.cpp @@ -38,7 +38,7 @@ void LengthFun::RegisterFunction(BuiltinFunctions &set) { set.AddFunction(ScalarFunction("bit_length", {SQLType::VARCHAR}, SQLType::BIGINT, ScalarFunction::UnaryFunction)); // length for BLOB type - set.AddFunction(ScalarFunction("octet_length", {SQLType::VARCHAR}, SQLType::BIGINT, + set.AddFunction(ScalarFunction("octet_length", {SQLType::BLOB}, SQLType::BIGINT, ScalarFunction::UnaryFunction)); }