From cda5d31655671546e2c7127f5b9d5da94a75e466 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Thu, 9 Feb 2012 20:08:03 -0500 Subject: Add test for describe_table/2 when table doesn't exist. --- test/mysqlerl_SUITE.erl | 6 ++++++ 1 file changed, 6 insertions(+) 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) -> -- cgit v1.2.3