mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.2 into 10.3
main.derived_cond_pushdown: Move all 10.3 tests to the end, trim trailing white space, and add an "End of 10.3 tests" marker. Add --sorted_result to tests where the ordering is not deterministic. main.win_percentile: Add --sorted_result to tests where the ordering is no longer deterministic.
This commit is contained in:
@@ -89,11 +89,13 @@ namespace mrn {
|
||||
for (int i = 0; i < n_key_parts && current_mysql_key < mysql_key_end; i++) {
|
||||
KEY_PART_INFO *key_part = &(key_info_->key_part[i]);
|
||||
Field *field = key_part->field;
|
||||
bool is_null = false;
|
||||
DBUG_PRINT("info", ("mroonga: key_part->length=%u", key_part->length));
|
||||
|
||||
if (field->null_bit) {
|
||||
DBUG_PRINT("info", ("mroonga: field has null bit"));
|
||||
*current_grn_key = 0;
|
||||
is_null = *current_mysql_key;
|
||||
current_mysql_key += 1;
|
||||
current_grn_key += 1;
|
||||
(*grn_key_length)++;
|
||||
@@ -164,7 +166,7 @@ namespace mrn {
|
||||
{
|
||||
Field_datetimef *datetimef_field =
|
||||
static_cast<Field_datetimef *>(field);
|
||||
long long int mysql_datetime_packed =
|
||||
long long int mysql_datetime_packed = is_null ? 0 :
|
||||
my_datetime_packed_from_binary(current_mysql_key,
|
||||
datetimef_field->decimals());
|
||||
MYSQL_TIME mysql_time;
|
||||
|
Reference in New Issue
Block a user