diff options
author | Brian Cully <bjc@kublai.com> | 2012-02-09 20:08:03 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2012-02-09 20:08:03 -0500 |
commit | cda5d31655671546e2c7127f5b9d5da94a75e466 (patch) | |
tree | e0cbccbce2ed161a1e7344f712334107bef45bb4 /test | |
parent | 18d3f700ee985219ca1395630372dff21cbe6c58 (diff) | |
download | mysqlerl-cda5d31655671546e2c7127f5b9d5da94a75e466.tar.gz mysqlerl-cda5d31655671546e2c7127f5b9d5da94a75e466.zip |
Add test for describe_table/2 when table doesn't exist.
Diffstat (limited to 'test')
-rw-r--r-- | test/mysqlerl_SUITE.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/mysqlerl_SUITE.erl b/test/mysqlerl_SUITE.erl index 260c0ea..530a4e5 100644 --- a/test/mysqlerl_SUITE.erl +++ b/test/mysqlerl_SUITE.erl @@ -338,6 +338,12 @@ rollback(Config) -> {updated, 0} = mysqlerl:commit(?config(db_ref, Config), rollback), {skip, "Not implemented"}. +describe_no_table(doc) -> + ["Test that describe_table/2 fails properly when no table exists."]; +describe_no_table(Config) -> + {error, _} = mysqlerl:describe_table(?config(db_ref, Config), "none"). + + select_no_results(doc) -> ["Tests that select/3 fails properly when no results exist."]; select_no_results(Config) -> |