diff options
author | unknown <pappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se> | 2005-07-22 17:05:16 -0400 |
---|---|---|
committer | unknown <pappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se> | 2005-07-22 17:05:16 -0400 |
commit | 183caf2ea49c6ed749aa66d0dae33dd4e7c772ad (patch) | |
tree | b0068a388e0fd220d2771179c31b72484a169c74 /sql/field.h | |
parent | 828a7021e782d83d0d96b215b0cd6b2e4e9718b4 (diff) | |
download | mariadb-git-183caf2ea49c6ed749aa66d0dae33dd4e7c772ad.tar.gz |
Bug #12116 patch
sql/field.h:
64-bit safe is_null with offset
sql/key.cc:
64-bit safe is_null with offset
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h index 9b6df35de43..31fa322e461 100644 --- a/sql/field.h +++ b/sql/field.h @@ -185,6 +185,12 @@ public: return test(record[(uint) (null_ptr - (uchar*) table->record[0])] & null_bit); } + inline bool is_null_in_record_with_offset(my_ptrdiff_t offset) + { + if (!null_ptr) + return 0; + return test(null_ptr[offset] & null_bit); + } inline void set_null(int row_offset=0) { if (null_ptr) null_ptr[row_offset]|= null_bit; } inline void set_notnull(int row_offset=0) |