diff options
author | Brian Cully <bjc@kublai.com> | 2008-03-02 14:11:54 -0500 |
---|---|---|
committer | Brian Cully <github.20.shmit@spamgourmet.com> | 2008-03-02 14:11:54 -0500 |
commit | 2b13b1cd11c874657f8be82077fda38979e59b59 (patch) | |
tree | 54bc3dad6a953d2477ba66a06c2f4b538a009519 /src | |
parent | 3aaf4a5fe7782c0ac94d51b6a6c835ed1af37cef (diff) | |
download | mysqlerl-2b13b1cd11c874657f8be82077fda38979e59b59.tar.gz mysqlerl-2b13b1cd11c874657f8be82077fda38979e59b59.zip |
Return {updated, NrRows} on non-select queries.
Diffstat (limited to 'src')
-rw-r--r-- | src/mysqlerl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mysqlerl.c b/src/mysqlerl.c index ae5ae56..b2a6ab3 100644 --- a/src/mysqlerl.c +++ b/src/mysqlerl.c @@ -159,7 +159,7 @@ handle_sql_query(MYSQL *dbh, ETERM *cmd) mysql_free_result(result); } else { if (mysql_field_count(dbh) == 0) - resp = erl_format("{num_rows, ~i}", mysql_affected_rows(dbh)); + resp = erl_format("{updated, ~i}", mysql_affected_rows(dbh)); else resp = erl_format("{error, {mysql_error, ~i, ~s}}", mysql_errno(dbh), mysql_error(dbh)); |