lnav/test/test_sql_xml_func.sh

12 lines
423 B
Bash
Raw Normal View History

2020-12-23 23:01:21 +00:00
#! /bin/bash
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc[', '<abc/>')"
2020-12-23 23:01:21 +00:00
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc', '<abc')"
2020-12-23 23:01:21 +00:00
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc/def', '<abc/>')"
2020-12-23 23:01:21 +00:00
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc/def[@a=\"b\"]', '<abc><def/><def a=\"b\">ghi</def></abc>')"
2020-12-23 23:01:21 +00:00
run_cap_test ./drive_sql "SELECT * FROM xpath('/abc/def', '<abc><def>Hello &gt;</def></abc>')"