aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-07-28 14:47:23 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2008-07-28 14:47:23 -0400
commitc4da807b1d7d729d75d0c17c87f5f7dd199cfb7b (patch)
tree4650230a8d865a3847525e7654dd482f4bbda9b6
parentf5fbee84de11776b796b57d80e5daf47d5543da6 (diff)
downloadmysqlerl-c4da807b1d7d729d75d0c17c87f5f7dd199cfb7b.tar.gz
mysqlerl-c4da807b1d7d729d75d0c17c87f5f7dd199cfb7b.zip
Add query test code.
-rw-r--r--src/mysqlerl.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mysqlerl.erl b/src/mysqlerl.erl
index 113efee..9b835cf 100644
--- a/src/mysqlerl.erl
+++ b/src/mysqlerl.erl
@@ -8,7 +8,7 @@
-export([convert_type/1]).
--export([test_start/0, test_msg/0]).
+-export([test_start/0, test_msg/0, test_query/0]).
-export([start/0, start/1, stop/0, commit/2, commit/3,
connect/6, disconnect/1, describe_table/2,
@@ -28,6 +28,10 @@ test_msg() ->
commit(mysqlerl_connection_sup:random_child(),
rollback, 2000).
+test_query() ->
+ sql_query(mysqlerl_connection_sup:random_child(),
+ "SELECT COUNT(*) FROM user", 2000).
+
start() ->
start(temporary).