summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-02-10 12:03:08 +0100
committerunknown <monty@mysql.com>2004-02-10 12:03:08 +0100
commit30d52f53d1ca4614726b79f3c582de8c7e6ce67b (patch)
treebdbe84927684ec56045577391850a226d3598a91 /sql/sql_insert.cc
parente2646f092e0e077dc5ad5440159767eeee2136d1 (diff)
downloadmariadb-git-30d52f53d1ca4614726b79f3c582de8c7e6ce67b.tar.gz
Code cleanups
client/mysqlbinlog.cc: Ensure that errors are returned to upper levels instead of just doing 'exit/die' in sub function. sql/handler.h: Indentation cleanup sql/sql_insert.cc: Indentation cleanup
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 4d7a9f7e508..bf3112bdf10 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -438,7 +438,8 @@ int write_record(TABLE *table,COPY_INFO *info)
key_copy((byte*) key,table,key_nr,0);
if ((error=(table->file->index_read_idx(table->record[1],key_nr,
(byte*) key,
- table->key_info[key_nr].key_length,
+ table->key_info[key_nr].
+ key_length,
HA_READ_KEY_EXACT))))
goto err;
}
@@ -449,8 +450,8 @@ int write_record(TABLE *table,COPY_INFO *info)
UPDATE.
*/
- if (last_uniq_key(table,key_nr)
- && !table->file->referenced_by_foreign_key())
+ if (last_uniq_key(table,key_nr) &&
+ !table->file->referenced_by_foreign_key())
{
if ((error=table->file->update_row(table->record[1],table->record[0])))
goto err;