diff options
author | Igor Babaev <igor@askmonty.org> | 2019-05-28 23:26:36 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2019-05-28 23:26:36 -0700 |
commit | cbb90f77cdbf57c02145dc6cd86acf8ebb8a88f0 (patch) | |
tree | dd5a613a38a95a9a4f05144ac10e1b96c945a6ab /include | |
parent | eb09580b67ee19f7ac30c1a41c8307b9c7d482d1 (diff) | |
download | mariadb-git-cbb90f77cdbf57c02145dc6cd86acf8ebb8a88f0.tar.gz |
MDEV-18479 Complement
This patch complements the patch that fixes bug MDEV-18479.
This patch takes care of possible overflow when calculating the
estimated number of rows in a materialized derived table / view.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_base.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_base.h b/include/my_base.h index 54e8443d86c..86be94399d6 100644 --- a/include/my_base.h +++ b/include/my_base.h @@ -586,6 +586,7 @@ typedef ulong ha_rows; #define HA_POS_ERROR (~ (ha_rows) 0) #define HA_OFFSET_ERROR (~ (my_off_t) 0) +#define HA_ROWS_MAX HA_POS_ERROR #if SYSTEM_SIZEOF_OFF_T == 4 #define MAX_FILE_SIZE INT_MAX32 |