diff options
author | dlenev@brandersnatch.localdomain <> | 2004-06-18 10:11:31 +0400 |
---|---|---|
committer | dlenev@brandersnatch.localdomain <> | 2004-06-18 10:11:31 +0400 |
commit | 09ba29e53977d7469c39bf181a6e5853869125ed (patch) | |
tree | ff56e2c9414f6b3b146acbeb3081ea40aced7f99 /sql/unireg.cc | |
parent | 48a47a0ea691b19216b055473212f8ecbdd10bb1 (diff) | |
download | mariadb-git-09ba29e53977d7469c39bf181a6e5853869125ed.tar.gz |
WL#1264 "Per-thread time zone support infrastructure".
Added basic per-thread time zone functionality (based on public
domain elsie-code). Now user can select current time zone
(from the list of time zones described in system tables).
All NOW-like functions honor this time zone, values of TIMESTAMP
type are interpreted as values in this time zone, so now
our TIMESTAMP type behaves similar to Oracle's TIMESTAMP WITH
LOCAL TIME ZONE (or proper PostgresSQL type).
WL#1266 "CONVERT_TZ() - basic time with time zone conversion
function".
Fixed problems described in Bug #2336 (Different number of warnings
when inserting bad datetime as string or as number). This required
reworking of datetime realted warning hadling (they now generated
at Field object level not in conversion functions).
Optimization: Now Field class descendants use table->in_use member
instead of current_thd macro.
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r-- | sql/unireg.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc index bab021aed59..c2666be804d 100644 --- a/sql/unireg.cc +++ b/sql/unireg.cc @@ -633,6 +633,7 @@ static bool make_empty_rec(File file,enum db_type table_type, DBUG_RETURN(1); } + table.in_use= current_thd; table.db_low_byte_first= handler->low_byte_first(); table.blob_ptr_size=portable_sizeof_char_ptr; |