diff options
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)); |