Fix another test

This commit is contained in:
Robert Schulze 2023-09-07 19:18:13 +00:00
parent e761532d7a
commit 46e1d05a89
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
3 changed files with 9 additions and 0 deletions

View File

@ -148,6 +148,11 @@ def test_string_functions(start_cluster):
# 22.8 Backward Incompatible Change: Extended range of Date32
"toDate32OrZero",
"toDate32OrDefault",
# 23.9 changed the base64-handling library from Turbo base64 to aklomp-base64. They differ in the way they deal with base64 values
# that are not properly padded by '=', for example below test value v='foo'. (Depending on the specification/context, padding is
# mandatory or optional). The former lib produces a value based on implicit padding, the latter lib throws an error.
"FROM_BASE64",
"base64Decode",
]
functions = filter(lambda x: x not in excludes, functions)

View File

@ -22,6 +22,7 @@ foobar
1 1
1 1
fooba
~<7E>
Zm9v
foo
foo

View File

@ -17,6 +17,9 @@ SELECT tryBase64Decode('foo', 'excess argument'); -- { serverError NUMBER_OF_ARG
SELECT base64Decode('Zm9vYmF=Zm9v'); -- { serverError INCORRECT_DATA }
SELECT tryBase64Decode('Zm9vYmF=Zm9v');
SELECT base64Decode('foo'); -- { serverError INCORRECT_DATA }
SELECT tryBase64Decode('foo');
select base64Encode(toFixedString('foo', 3));
select base64Decode(toFixedString('Zm9v', 4));
select tryBase64Decode(toFixedString('Zm9v', 4));