aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mysqlerl.c15
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)
{