1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

IB: CASCADE operation for DELETE

* Removed "Not supported for TIMESTAMP-based" error
* Fixed code duplication with node->vers_set_fields()
* Recovered foreign.test

[closes tempesta-tech#473]
This commit is contained in:
Aleksey Midenkov
2018-01-13 00:19:16 +03:00
committed by Eugene Kosov
parent 85ddd9e8ce
commit 0cf97ad5b9
10 changed files with 198 additions and 151 deletions

View File

@ -5198,6 +5198,20 @@ extern "C" bool thd_is_strict_mode(const MYSQL_THD thd)
}
/**
Get query start time as SQL field data.
Needed by InnoDB.
@param thd Thread object
@param buf Buffer to hold start time data
*/
void thd_get_query_start_data(THD *thd, char *buf)
{
LEX_CSTRING field_name;
Field_timestampf f((uchar *)buf, NULL, 0, Field::NONE, &field_name, NULL, 6);
f.store_TIME(thd->query_start(), thd->query_start_sec_part());
}
/*
Interface for MySQL Server, plugins and storage engines to report
when they are going to sleep/stall.