Skip to content

Commit a1fafc6

Browse files
committed
fix tests
1 parent f420f5a commit a1fafc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/sql_test_files/it_works_fetch_with_meta_error.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ set res = sqlpage.fetch_with_meta('http://not-a-real-url');
22

33
select 'text' as component,
44
case
5-
when json_extract($res, '$.error') LIKE 'Request failed%' then 'It works !'
6-
else 'Error! Got: ' || $res
5+
when json_extract($res, '$.error') LIKE '%Request failed%' then 'It works !'
6+
else CONCAT('Error! Got: ', $res)
77
end as contents;

0 commit comments

Comments
 (0)