diff options
author | msvensson@neptunus.(none) <> | 2006-07-19 15:55:04 +0200 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2006-07-19 15:55:04 +0200 |
commit | 9a7d888aa3fb59f0ec6d441ece83d5759eacf5b3 (patch) | |
tree | d676ba8a587cfcb8b96c06e5461e99ef85c9bca2 /sql/field.h | |
parent | c621d4e45cad86aff09705da83fe8991a4057c04 (diff) | |
download | mariadb-git-9a7d888aa3fb59f0ec6d441ece83d5759eacf5b3.tar.gz |
Bug #21135 Crash in test "func_time"
- backport patch from 5.0
- "table" can be NULL in temporary fields used for type conversion
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/field.h b/sql/field.h index 966549516b1..a33cb0a93aa 100644 --- a/sql/field.h +++ b/sql/field.h @@ -713,7 +713,7 @@ public: if ((*null_value= is_null())) return 0; #ifdef WORDS_BIGENDIAN - if (table->db_low_byte_first) + if (table && table->db_low_byte_first) return sint4korr(ptr); #endif long tmp; |