From ebf2069c6a2bd209c932a91e5dfa68c914e2910f Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 28 Jul 2008 15:20:58 -0400 Subject: Note that mysqlerl:test_param_query/0 should have an INSERT or something, since you don't normally use bind params with SELECT. --- src/mysqlerl.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/mysqlerl.erl b/src/mysqlerl.erl index 726a55f..e59de7d 100644 --- a/src/mysqlerl.erl +++ b/src/mysqlerl.erl @@ -33,6 +33,8 @@ test_query() -> "SELECT COUNT(*) FROM user", 2000). test_param_query() -> + %% This should really be an update or something, since that's how + %% it'll be used. param_query(mysqlerl_connection_sup:random_child(), "SELECT * FROM user WHERE username=?", [{{sql_varchar, 20}, ["bjc"]}]). -- cgit v1.2.3