summaryrefslogtreecommitdiff
path: root/include/mysql
diff options
context:
space:
mode:
authorramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-07-03 17:17:58 +0500
committerramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-07-03 17:17:58 +0500
commitee5403110d3f7651ece18f3d2a89258b509616da (patch)
tree62836edad1515fad18f5c269b21e8fbb0ecd0db7 /include/mysql
parent8c2661520451c4f2886f6cdeef030fe4984b7381 (diff)
downloadmariadb-git-ee5403110d3f7651ece18f3d2a89258b509616da.tar.gz
Complementary fix for bug #29353: inserting a negative value to a csv table
leads to the table corruption New Field::store() method implemented to explicitly set thd->count_cuted_fields before value storing, instead of (incorrectly) setting it in the CSV storage engine. Thread row counter now properly incremented during check and repair in the CSV engine.
Diffstat (limited to 'include/mysql')
-rw-r--r--include/mysql/plugin.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mysql/plugin.h b/include/mysql/plugin.h
index 7b224695324..dd540225deb 100644
--- a/include/mysql/plugin.h
+++ b/include/mysql/plugin.h
@@ -655,7 +655,8 @@ void **thd_ha_data(const MYSQL_THD thd, const struct handlerton *hton);
int thd_tx_isolation(const MYSQL_THD thd);
char *thd_security_context(MYSQL_THD thd, char *buffer, unsigned int length,
unsigned int max_query_len);
-
+/* Increments the row counter, see THD::row_count */
+void thd_inc_row_count(MYSQL_THD thd);
#ifdef __cplusplus
}