We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3be385 commit e75fc22Copy full SHA for e75fc22
tests/sql_test_files/it_works_fetch_with_meta_error.sql
@@ -2,6 +2,6 @@ set res = sqlpage.fetch_with_meta('http://not-a-real-url');
2
3
select 'text' as component,
4
case
5
- when json_extract($res, '$.error') LIKE '%Request failed%' then 'It works !'
+ when $res LIKE '%"error":"Request failed%' then 'It works !'
6
else CONCAT('Error! Got: ', $res)
7
end as contents;
0 commit comments