diff options
author | unknown <monty@mashka.mysql.fi> | 2003-07-09 00:55:07 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-07-09 00:55:07 +0300 |
commit | 3c268e59eceb23bb2b62985b5f1166c6ac14fe2f (patch) | |
tree | 2d918b1ab9c85dbf33a1677a53e76b3447a7733c /sql/sql_delete.cc | |
parent | 5e817c53138f990eae300aca25e95f2c0862146e (diff) | |
download | mariadb-git-3c268e59eceb23bb2b62985b5f1166c6ac14fe2f.tar.gz |
Cleanups
mysql-test/t/distinct.test:
Cleanup
sql/log.cc:
Cleanup
sql/slave.cc:
Cleanup
sql/sql_delete.cc:
Cleanup
sql/sql_parse.cc:
Simple optimization
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r-- | sql/sql_delete.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index 96638617610..45acbaaa7ef 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -145,12 +145,15 @@ int mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, ORDER *order, else { table->file->print_error(error,MYF(0)); - error=1; /* In < 4.0.14 we set the error number to 0 here, but that - was not sensible, because then MySQL would not roll back the - failed DELETE, and also wrote it to the binlog. For MyISAM - tables a DELETE probably never should fail (?), but for - InnoDB it can fail in a FOREIGN KEY error or an - out-of-tablespace error. (Comment by Heikki July 7, 2003) */ + /* + In < 4.0.14 we set the error number to 0 here, but that + was not sensible, because then MySQL would not roll back the + failed DELETE, and also wrote it to the binlog. For MyISAM + tables a DELETE probably never should fail (?), but for + InnoDB it can fail in a FOREIGN KEY error or an + out-of-tablespace error. + */ + error= 1; break; } } |