diff options
author | Marko Mäkelä <marko.makela@oracle.com> | 2010-11-04 15:12:15 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@oracle.com> | 2010-11-04 15:12:15 +0200 |
commit | 57cb45514dd00b2afd48e9a0b8b36730ac350e72 (patch) | |
tree | 02ce600d35c1b61ade53f6901064aa17ff39485e /storage | |
parent | 1f0f542a4264e2896fc8b2be8190d3e8fa813b80 (diff) | |
download | mariadb-git-57cb45514dd00b2afd48e9a0b8b36730ac350e72.tar.gz |
row_ins_index_entry(): Note that only CREATE INDEX sets foreign=FALSE.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/innodb_plugin/include/row0ins.h | 3 | ||||
-rw-r--r-- | storage/innodb_plugin/row/row0ins.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/storage/innodb_plugin/include/row0ins.h b/storage/innodb_plugin/include/row0ins.h index c780d228a45..810973e61a7 100644 --- a/storage/innodb_plugin/include/row0ins.h +++ b/storage/innodb_plugin/include/row0ins.h @@ -86,7 +86,8 @@ row_ins_index_entry( dict_index_t* index, /*!< in: index */ dtuple_t* entry, /*!< in/out: index entry to insert */ ulint n_ext, /*!< in: number of externally stored columns */ - ibool foreign,/*!< in: TRUE=check foreign key constraints */ + ibool foreign,/*!< in: TRUE=check foreign key constraints + (foreign=FALSE only during CREATE INDEX) */ que_thr_t* thr); /*!< in: query thread */ /***********************************************************//** Inserts a row to a table. This is a high-level function used in diff --git a/storage/innodb_plugin/row/row0ins.c b/storage/innodb_plugin/row/row0ins.c index 81b58465e11..298c601c7e3 100644 --- a/storage/innodb_plugin/row/row0ins.c +++ b/storage/innodb_plugin/row/row0ins.c @@ -2160,7 +2160,8 @@ row_ins_index_entry( dict_index_t* index, /*!< in: index */ dtuple_t* entry, /*!< in/out: index entry to insert */ ulint n_ext, /*!< in: number of externally stored columns */ - ibool foreign,/*!< in: TRUE=check foreign key constraints */ + ibool foreign,/*!< in: TRUE=check foreign key constraints + (foreign=FALSE only during CREATE INDEX) */ que_thr_t* thr) /*!< in: query thread */ { ulint err; |