diff options
author | Brian Cully <bjc@kublai.com> | 2008-03-02 20:03:57 -0500 |
---|---|---|
committer | Brian Cully <github.20.shmit@spamgourmet.com> | 2008-03-02 20:03:57 -0500 |
commit | ba80b36476423fa5ceef7ed50406791c40b593f2 (patch) | |
tree | e4097cf1cc614835650f7f07540d707fe7869709 | |
parent | 2b23df6493143d58723a2a055caf62b74d9291c9 (diff) | |
download | mysqlerl-ba80b36476423fa5ceef7ed50406791c40b593f2.tar.gz mysqlerl-ba80b36476423fa5ceef7ed50406791c40b593f2.zip |
Add param_query comment for understanding.
-rw-r--r-- | src/mysqlerl.c | 15 |
1 files changed, 15 insertions, 0 deletions
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) { |