diff options
author | Brian Cully <bjc@kublai.com> | 2008-07-28 14:49:27 -0400 |
---|---|---|
committer | Brian Cully <github.20.shmit@spamgourmet.com> | 2008-07-28 14:49:27 -0400 |
commit | 88f25db3801139eb6e7b41d3f006b78dd069a9ba (patch) | |
tree | 1227bce4f5cf1abb909832c3bdbf10932c35c1ef | |
parent | c4da807b1d7d729d75d0c17c87f5f7dd199cfb7b (diff) | |
download | mysqlerl-88f25db3801139eb6e7b41d3f006b78dd069a9ba.tar.gz mysqlerl-88f25db3801139eb6e7b41d3f006b78dd069a9ba.zip |
Add test for param queries.
-rw-r--r-- | src/mysqlerl.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mysqlerl.erl b/src/mysqlerl.erl index 9b835cf..53f526e 100644 --- a/src/mysqlerl.erl +++ b/src/mysqlerl.erl @@ -8,7 +8,7 @@ -export([convert_type/1]). --export([test_start/0, test_msg/0, test_query/0]). +-export([test_start/0, test_msg/0, test_query/0, test_param_query/0]). -export([start/0, start/1, stop/0, commit/2, commit/3, connect/6, disconnect/1, describe_table/2, @@ -32,6 +32,11 @@ test_query() -> sql_query(mysqlerl_connection_sup:random_child(), "SELECT COUNT(*) FROM user", 2000). +test_param_query() -> + param_query(mysqlerl_connection_sup:random_child(), + "SELECT * FROM user WHERE username=?", + [{{sql_varchar, 20}, "bjc"}]). + start() -> start(temporary). |