From ba80b36476423fa5ceef7ed50406791c40b593f2 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sun, 2 Mar 2008 20:03:57 -0500 Subject: Add param_query comment for understanding. --- src/mysqlerl.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/mysqlerl.c b/src/mysqlerl.c index b03e5f5..42fa3dc 100644 --- a/src/mysqlerl.c +++ b/src/mysqlerl.c @@ -189,6 +189,21 @@ handle_query(MYSQL *dbh, ETERM *cmd) erl_free_term(resp); } +/* + +6 > odbc:param_query(Ref,"INSERT INTO EMPLOYEE (NR, FIRSTNAME, " + "LASTNAME, GENDER) VALUES(?, ?, ?, ?)", + [{sql_integer,[2,3,4,5,6,7,8]}, + {{sql_varchar, 20}, + ["John", "Monica", "Ross", "Rachel", + "Piper", "Prue", "Louise"]}, + {{sql_varchar, 20}, + ["Doe","Geller","Geller", "Green", + "Halliwell", "Halliwell", "Lane"]}, + {{sql_char, 1}, ["M","F","M","F","T","F","F"]}]). + {updated, 7} + */ + void handle_param_query(MYSQL *dbh, ETERM *msg) { -- cgit v1.2.3