Skip to content

Commit e75fc22

Browse files
committed
fix tests on mssql
no json_extract
1 parent f3be385 commit e75fc22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/sql_test_files/it_works_fetch_with_meta_error.sql

+1-1
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 !'
5+
when $res LIKE '%"error":"Request failed%' then 'It works !'
66
else CONCAT('Error! Got: ', $res)
77
end as contents;

0 commit comments

Comments
 (0)