diff options
author | unknown <msvensson@neptunus.(none)> | 2006-07-19 15:55:04 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-07-19 15:55:04 +0200 |
commit | 0794dc7104c3cefa3902753067f438945886f59a (patch) | |
tree | d676ba8a587cfcb8b96c06e5461e99ef85c9bca2 /sql/field.h | |
parent | 1c41013285b9a10a4ac267fad836ee957318c089 (diff) | |
download | mariadb-git-mysql-4.1.21.tar.gz |
Bug #21135 Crash in test "func_time"mysql-4.1.21
- backport patch from 5.0
- "table" can be NULL in temporary fields used for type conversion
sql/field.cc:
table can be NULL in temporary fields used for type conversion.
Store value in field as if db_low_byte_first was set.
sql/field.h:
table can be NULL in temporary fields used for type conversion.
Store value in field as if db_low_byte_first was set.
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; |