summaryrefslogtreecommitdiff
path: root/sql/tztime.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge mysql.com:/home/dlenev/mysql-5.0-bg11081dlenev@mysql.com2006-05-021-2/+11
|\ | | | | | | into mysql.com:/home/dlenev/mysql-5.1-merges
| * Fix for bug#11081 "Using a CONVERT_TZ function in a stored function ordlenev@mysql.com2006-04-241-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trigger fails". In cases when CONVERT_TZ() function was used in trigger or stored function (or in stored procedure which was called from trigger or stored function) error about non existing '.' table was reported. Statements that use CONVERT_TZ() function should have time zone related tables in their table list. tz_init_table_list() function which is used to produce part of table list containing those tables didn't set TABLE_LIST::db_length/table_name_length members properly. As result time zone tables needed for CONVERT_TZ() function were incorrectly handled by prelocking algorithm and "Table '.' doesn't exist' error was emitted. This fix changes tz_init_table_list() in such way that it properly inits TABLE_LIST::table_name_length/db_length members and thus produces table list which can be handled by prelocking algorithm correctly.
* | Merge mysql.com:/home/my/mysql-5.0monty@mysql.com2006-02-251-0/+1
|\ \ | |/ | | | | into mysql.com:/home/my/mysql-5.1
| * Fixed compiler warnings from gcc 4.0.2:monty@mysql.com2006-02-251-0/+1
| | | | | | | | | | - Added empty constructors and virtual destructors to many classes and structs - Removed some usage of the offsetof() macro to instead use C++ class pointers
* | WL#1034 updatedandrey@lmy004.2005-12-051-1/+1
| | | | | | | | | | | | | | | | | | - split into several files - forbid parallel execution (before analyse is done how to make it possible) because the same sp_head instance cannot be executed in parallel - added GPL headers - changed EVENT_ACL to be per DB variable - fixed minor problems
* | WL1034 update for latest 5.1 sourcesandrey@lmy004.2005-12-021-0/+1
|/
* Fixes during review of new pushed codemonty@mishka.local2005-07-311-1/+1
| | | | | | Change bool in C code to my_bool Added to mysqltest --enable_parsning and --disable_parsing to avoid to have to comment parts of tests Added comparison of LEX_STRING's and use this to compare file types for view and trigger files.
* Merge neptunus.(none):/home/msvensson/mysql/bug10241msvensson@neptunus.(none)2005-05-091-1/+1
|\ | | | | | | into neptunus.(none):/home/msvensson/mysql/mysql-5.0
| * BUG#10241 cygwin port: invalid pragma interface directivesmsvensson@neptunus.(none)2005-05-041-1/+1
| | | | | | | | - Introduce ifdefs so we can control when to use #pragma interface on cygwin
* | Last part of WL#1062: better replication of timezones: no more usegbichot@production.mysql.com2005-03-221-6/+1
| | | | | | | | | | of SET ONE_SHOT; storing tz info directly in event (if this info is needed), it's now allowed to have different global tz on master and slave.
* | Merge with global treemonty@mysql.com2004-12-311-2/+4
|\ \
| * \ Merge with 4.1monty@mishka.local2004-12-221-2/+4
| |\ \ | | |/
| | * Fix for bug #6765 "Implicit access to time zone description dlenev@brandersnatch.localdomain2004-12-091-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tables requires privileges for them if some table or column level grants present" (with after-review fixes). We should set SELECT_ACL for implicitly opened tables in my_tz_check_n_skip_implicit_tables() to be able to bypass privilege checking in check_grant(). Also we should exclude those tables from privilege checking in multi-update.
* | | Fix for bug #6849 "Crash while preparing query containing const expr withdlenev@brandersnatch.localdomain2004-12-171-0/+1
|/ / | | | | | | | | | | | | | | | | | | | | IN and CONVERT_TZ()" (with after review changes). Now we add implicitly used time zone tables to global table list right at the parsing stage instead of doing it later in mysql_execute_command() or in check_prepared_statement(). No special test-case needed since this bug also manifests itself as timezone2.test failure if one runs it with --ps-protocol option.
* | merge with 4.1monty@mysql.com2004-10-291-0/+29
|\ \ | |/
| * Fix for bug #6116 "SET time_zone := ... requires access todlenev@brandersnatch.localdomain2004-10-211-0/+29
| | | | | | | | | | | | | | mysql.time_zone* tables". We are excluding implicitly used time zone tables from privilege checking.
* | After merge fixes of merge with 4.1 that included the new arena code.monty@mysql.com2004-09-091-1/+1
|/ | | | | | | | | | | Fixed (together with Guilhem) bugs in mysqlbinlog regarding --offset Prefix addresses with 0x for easier comparisons of debug logs Fixed problem where MySQL choosed index-read even if there would be a much better range on the same index This fix changed some 'index' queries to 'range' queries in the test suite Don't create 'dummy' WHERE clause for trivial WHERE clauses where we can remove the WHERE clause. This fix removed of a lot of 'Using where' notes in the test suite. Give NOTE instead of WARNING if table/function doesn't exists when using DROP IF EXISTS Give NOTE instead of WARNING for safe field-type conversions
* Fix for bug #4508 "CONVERT_TZ() function with new time zone as param crashes ↵dlenev@brandersnatch.localdomain2004-08-101-1/+2
| | | | | | | | | server". Instead of trying to open time zone tables during calculation of CONVERT_TZ() function or setting of @@time_zone variable we should open and lock them with the rest of statement's table (so we should add them to global table list) and after that use such pre-opened tables for loading info about time zones.
* Cleanup in mysql_time.h/my_time.h headers. The first is used in mysql.h,konstantin@mysql.com2004-08-051-2/+0
| | | | the second is for the rest of time declarations in mysys.
* WL#1580: --start-datetime, --stop-datetime, --start-position (alias for ↵guilhem@mysql.com2004-07-291-7/+2
| | | | | | | | | | | --position) and --stop-position options for mysqlbinlog, with a test file. This enables user to say "recover my database to how it was this morning at 10:30" (mysqlbinlog "--stop-datetime=2003-07-29 10:30:00"). Using time functions into client/ made me move them out of sql/ into sql-common/. + (small) fix for BUG#4507 "mysqlbinlog --read-from-remote-server sometimes cannot accept 2 binlogs" (that is, on command line).
* Removed mysql_tzinfo_to_sql dependancy on sql/mysql_priv.h for circumventingdlenev@brandersnatch.localdomain2004-06-251-0/+8
| | | | problems with unresolved dependancies on some platforms.
* WL#1264 "Per-thread time zone support infrastructure".dlenev@brandersnatch.localdomain2004-06-181-0/+71
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.