mariadb/sql
unknown e6f924efe5 Fix for bug #4131 "TIMESTAMP columns missing minutes and seconds when
using GROUP BY"
Now we are setting Field_timestamp::field_length to 19 in open_table()
if we are in new mode (and we are restoring it back when we are coming
back to normal mode). This also should solve potential problems with
some of LOAD DATA INFILE and SELECT * INTO in this mode.


mysql-test/r/type_timestamp.result:
  Added test for bug #4131 'TIMESTAMP columns missing minutes and seconds
  when using GROUP BY' and other --new mode related behavior.
mysql-test/t/type_timestamp.test:
  Added test for bug #4131 'TIMESTAMP columns missing minutes and seconds
  when using GROUP BY' and other --new mode related behavior.
sql/field.cc:
  Added Field_timestamp::orig_field_length member for saving original
  field_length value, because this member can be modified if new_mode is
  in effect.
  Lot of Field_timestamp code simplified and Field_timestamp::make_field()
  is no longer needed because we are setting field_length to 19 if we are
  in --new mode now.
sql/field.h:
  Added Field_timestamp::orig_field_length member for saving original
  field_length value, because this member can be modified if new_mode
  is in effect. 
  Field_timestamp::make_field() is no longer needed because we are setting
  field_length to 19 if we are in --new mode now.
sql/sql_base.cc:
  If --new mode is in effect all TIMESTAMP fields should pretend that they
  have length of 19. We are achieving this by setting 
  Field_timestamp::field_length to 19 (or original value) in open_table().
  We are using TABLE::timestamp_mode variable for avoiding of unnecessary
  looping over all fields of the table and setting field_length if table
  was used with same new_mode value before.
  
  Note: We do not introduce general framework for setting up Field objects
  for usage with current THD here because this fix is only needed in 4.0
  and Monty said that we will also remove looping over all fields when
  updating table_name member at some point. This more general framework
  will also complicate nice optimization with avoiding of unneeded looping.
sql/sql_parse.cc:
  Now when we are creating TIMESTAMP(19) fields by default in --new mode,
  otherwise we will have unaligned behavior between ALTER and CREATE.
sql/table.h:
  Added TABLE::timestamp_mode field for saving information whenever we set 
  field_length members of table's TIMESTAMP fields to 19 (to honor 
  new_mode) or they have original values.
2004-09-27 00:50:00 +04:00
..
share win1251.conf: 2004-08-27 10:54:57 +05:00
.cvsignore
add_errmsg
cache_manager.cc
cache_manager.h
convert.cc Compile all charset conversion tables if --with-extra-charsets=all 2004-08-27 21:17:29 +05:00
custom_conf.h
derror.cc
des_key_file.cc Replaced deprecated since OpenSSL 0.9.7 des_ calls and types with 2003-09-12 22:33:43 +04:00
field.cc Fix for bug #4131 "TIMESTAMP columns missing minutes and seconds when 2004-09-27 00:50:00 +04:00
field.h Fix for bug #4131 "TIMESTAMP columns missing minutes and seconds when 2004-09-27 00:50:00 +04:00
field_conv.cc Optimized old patches 2003-07-01 14:38:38 +03:00
filesort.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
frm_crypt.cc
gen_lex_hash.cc mysql_priv.h: 2004-08-14 03:38:37 +02:00
ha_berkeley.cc Merge 2004-06-25 12:59:47 +02:00
ha_berkeley.h Mark that strings may change on index only reads (for BDB tables). 2004-01-29 15:16:48 +01:00
ha_heap.cc fixed Bug #4973 Memory is not released when HEAP table is dropped 2004-08-11 18:55:12 +05:00
ha_heap.h Fixes for valgrind 2003-04-23 21:52:16 +03:00
ha_innodb.cc ha_innodb.cc: 2004-08-19 23:22:16 +03:00
ha_innodb.h InnoDB: Add option for disabling innodb_status.<pid> files. 2004-08-06 15:55:50 +03:00
ha_isam.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_isam.h Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_isammrg.cc Portability fixes for Fortre C++ 5.0 (on Sun) in 32 and 64 bit modes. 2002-11-07 03:54:00 +02:00
ha_isammrg.h Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_myisam.cc Fixed memory leak in DROP DATABASE when using RAID tables (Bug #2882) 2004-03-10 13:46:11 +02:00
ha_myisam.h Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_myisammrg.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
ha_myisammrg.h Some small portability fixes. 2003-12-30 13:14:21 +02:00
handler.cc Making FLUSH TABLES WITH READ LOCK block COMMITs of existing transactions, 2004-08-20 16:35:23 +02:00
handler.h fixed bug #2342 2004-03-27 00:35:45 +04:00
hash_filo.cc
hash_filo.h Portability fixes for Fortre C++ 5.0 (on Sun) in 32 and 64 bit modes. 2002-11-07 03:54:00 +02:00
hostname.cc Fixes for Netware 2003-01-28 08:38:28 +02:00
init.cc Added option --read-only (Thanks to Markus Benning) 2003-05-19 12:01:38 +03:00
item.cc Fixed stack overrun with some INSERT ... SELECT ... GROUP BY queries (Bug #3265) 2004-04-28 03:37:45 +03:00
item.h Fixed stack overrun with some INSERT ... SELECT ... GROUP BY queries (Bug #3265) 2004-04-28 03:37:45 +03:00
item_buff.cc
item_cmpfunc.cc BUG#3987 - if(int, aggregate(int)) 2004-06-07 12:38:35 +02:00
item_cmpfunc.h null.test, null.result: 2004-08-20 23:48:30 -07:00
item_create.cc CURRENT_USER() and "access denied" error messages now report hostname exactly as it was specified in the GRANT command (with wildcards, that is) 2003-04-29 00:15:18 +02:00
item_create.h Fix problem in MIN/MAX optimisation (from last patch) 2003-02-07 17:57:07 +02:00
item_func.cc Fix for bug #4340: find_in_set is case insensitive even on binary operators(2nd version) 2004-08-24 17:29:08 +04:00
item_func.h BUG#4393, BUG#4356 - incorrect decimals in fix_length_and_dec() in some functions 2004-07-31 22:39:10 +02:00
item_strfunc.cc A fix (bug #3756: ISNULL(QUOTE()) returns 1 for every row after 1st NULL) 2004-05-17 12:47:16 +05:00
item_strfunc.h Fix for bug#1944 'Function RPad() sometimes produce unexpected result' 2003-12-04 14:12:01 +04:00
item_sum.cc cleanup: if there is return from if-part, we don't need else statement 2003-12-10 22:26:31 +03:00
item_sum.h BUG#4393, BUG#4356 - incorrect decimals in fix_length_and_dec() in some functions 2004-07-31 22:39:10 +02:00
item_timefunc.cc compatibility fix. warning removed 2004-05-03 18:26:50 +02:00
item_timefunc.h Bugfix for #614 2003-06-11 20:09:37 +05:00
item_uniq.cc
item_uniq.h Fixed some varnings from valgrind 2003-08-20 16:25:44 +03:00
key.cc Proper fix for bug with BLOB in MIN/MAX 2004-01-19 23:44:39 +01:00
lex.h Portability fixes (mostly test suite) 2003-12-16 13:20:17 +02:00
lex_symbol.h
lock.cc Making FLUSH TABLES WITH READ LOCK block COMMITs of existing transactions, 2004-08-20 16:35:23 +02:00
log.cc log.cc: 2004-08-30 00:50:39 +02:00
log_event.cc Fix for BUG#4500 "set character set replicates incorrectly" 2004-08-29 14:13:51 +02:00
log_event.h Always use libtool with "--preserve-dup-deps" 2004-02-13 16:05:09 +02:00
Makefile.am distclean: 2004-07-22 19:28:11 +02:00
matherr.c
mf_iocache.cc Fixed memory leak in DROP DATABASE when using RAID tables (Bug #2882) 2004-03-10 13:46:11 +02:00
mini_client.cc Fixed usage of strxnmov() in recent changesets 2004-02-19 22:04:31 +02:00
mini_client.h New SET syntax & system variables. 2002-07-23 18:31:22 +03:00
my_lock.c Fixes for Netware 2003-01-28 08:38:28 +02:00
mysql_priv.h Merge bk-internal.mysql.com:/home/bk/mysql-4.0 2004-08-26 13:43:27 +02:00
mysqld.cc Code style fixes. 2004-08-28 00:49:54 +03:00
mysqld_suffix.h New MYSQL_SERVER_SUFFIX usage (for easier compilation) 2004-05-25 02:28:44 +03:00
net_pkg.cc use my_vsnprintf() just in case 2004-08-18 00:04:43 +02:00
net_serv.cc c++ comment fixed 2004-02-21 14:25:43 +01:00
nt_servc.cc merge with 3.23 2004-03-25 22:05:09 +02:00
nt_servc.h Added optional NT service and fix the TZ variable bug 2002-10-16 21:51:03 -02:00
opt_ft.cc Add new user variables for tuning memory usage: 2003-10-11 22:00:24 +03:00
opt_ft.h Add new user variables for tuning memory usage: 2003-10-11 22:00:24 +03:00
opt_range.cc Fixed unlikely bug in the range optimzer when using many IN() queries on different key parts. (Bug #4157) 2004-06-18 02:31:11 +03:00
opt_range.h Add new user variables for tuning memory usage: 2003-10-11 22:00:24 +03:00
opt_sum.cc Bug#4411 2004-08-11 23:24:36 +01:00
password.c - renamed "rnd" to "my_rnd" as the name was too generic (and is an exported 2003-03-18 22:14:02 +01:00
procedure.cc
procedure.h Removed wrong implementation of CUBE/ROLLUP 2002-07-24 19:55:08 +03:00
records.cc Fix autoincrement for signed columns (Bug #1366) 2003-12-12 22:26:58 +02:00
repl_failsafe.cc Fix for: 2004-07-31 22:33:20 +02:00
repl_failsafe.h Clearer error message when one forgot to grant REPLICATION SLAVE : 2003-03-08 18:53:32 +01:00
set_var.cc Changed --log-warnings to be integer instead of boolean. Given --skip-log-warnings 2004-06-01 17:29:24 +03:00
set_var.h Ensure that one can't from the command line set a variable too small. (Bug #2710) 2004-03-06 10:43:35 +02:00
slave.cc Fix for: 2004-07-31 22:33:20 +02:00
slave.h A new option --replicate-same-server-id to force a slave to execute queries originating from itself 2004-04-28 18:24:46 +02:00
sql_acl.cc A fix (Bug#4898: User privileges depending on ORDER BY Settings of table db) 2004-08-12 09:41:35 +05:00
sql_acl.h backport wild_compare fix from 4.1 - bug#3924 2004-05-29 17:52:20 +02:00
sql_analyse.cc Bug #4797 - 32 bit and 64 bit builds behave differently on int32 overflow 2004-08-11 23:43:41 +02:00
sql_analyse.h merge with 3.23 to get corrected error message files and rename of files in mysql-test 2003-02-26 00:22:35 +02:00
sql_base.cc Fix for bug #4131 "TIMESTAMP columns missing minutes and seconds when 2004-09-27 00:50:00 +04:00
sql_cache.cc fixed BUG in query cahe statistic counting 2004-03-21 11:48:51 +02:00
sql_cache.h invalidation of locking for write tables (BUG#2693) 2004-03-04 18:32:55 +02:00
sql_class.cc Avoiding a theoretically possible crash (pthread_mutex_lock(0)) which could (at least in POSIX Threads books) 2004-07-30 00:53:25 +02:00
sql_class.h Making FLUSH TABLES WITH READ LOCK block COMMITs of existing transactions, 2004-08-20 16:35:23 +02:00
sql_crypt.cc - renamed "rnd" to "my_rnd" as the name was too generic (and is an exported 2003-03-18 22:14:02 +01:00
sql_crypt.h
sql_db.cc Making FLUSH TABLES WITH READ LOCK block COMMITs of existing transactions, 2004-08-20 16:35:23 +02:00
sql_delete.cc Fix for BUG#5033 "When using temporary tables truncate does NOT reset the auto_increment counter" 2004-08-23 16:15:57 +02:00
sql_do.cc
sql_handler.cc bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock. 2004-06-24 15:06:56 +02:00
sql_insert.cc Fix for BUG#4551 "Temporary InnoDB tables not replicated properly with CREATE TABLE .. SELECT" 2004-07-18 14:34:35 +02:00
sql_lex.cc Added missing (char*) casts in bzero calls. 2003-07-03 01:08:34 +02:00
sql_lex.h Cleaner implementation if INSERT ... SELECT with same tables 2003-07-03 11:55:36 +03:00
sql_list.cc Don't install signal handler for SIGINT by default 2003-06-10 21:42:29 +03:00
sql_list.h Rollback UPDATE/DELETE statements on kill 2004-03-04 18:16:10 +02:00
sql_load.cc A fix for a long standing bug in LOAD DATA .. LOCAL ..' 2004-07-13 13:54:20 +03:00
sql_manager.cc Portability fixes for Fortre C++ 5.0 (on Sun) in 32 and 64 bit modes. 2002-11-07 03:54:00 +02:00
sql_manager.h
sql_map.cc
sql_map.h
sql_olap.cc New multi-table-update code 2002-11-29 16:40:18 +02:00
sql_parse.cc Fix for bug #4131 "TIMESTAMP columns missing minutes and seconds when 2004-09-27 00:50:00 +04:00
sql_rename.cc Some small portability fixes. 2003-12-30 13:14:21 +02:00
sql_repl.cc Backporting parts of 2004-03-10 16:56:28 +01:00
sql_repl.h BUG#2428 "--old-rpl-compat is broken": 2004-01-18 17:51:20 +01:00
sql_select.cc Fix for bug #5134: WHERE x = 'bar' AND x LIKE BINARY 'bar' returns 2004-08-23 19:13:47 +04:00
sql_select.h Fixes for valgrind 2003-04-23 21:52:16 +03:00
sql_show.cc mysql_find_files() made extern (from static to sql_show.cc) 2004-07-10 11:13:05 +02:00
sql_sort.h
sql_string.cc a proper fix for the bug #2298 Trailing whitespace inconsistently handled in WHERE clause. 2004-01-22 18:05:47 +04:00
sql_string.h
sql_table.cc cosmetic change 2004-08-19 10:01:01 +02:00
sql_test.cc Safety fix to detect multiple calls to my_thread_end() 2003-10-16 20:55:15 +03:00
sql_udf.cc Added testing of pthread_key_delete (to fix compile problem on SCO) (Bug #2461) 2004-02-05 09:12:23 +01:00
sql_udf.h
sql_union.cc union.result: 2004-03-22 16:35:15 +02:00
sql_update.cc Ensure that install_test_db.sh script works with both 'make install' and 'make_binary_distribution' layouts 2004-03-12 01:10:22 +02:00
sql_yacc.yy BUG#4717 - check for valid table names in ALTER TABLE ... RENAME 2004-07-26 10:52:40 +02:00
stacktrace.c - Fixed URL to Using_stack_trace.html (the old one still works, but gets 2003-03-05 12:42:10 +01:00
stacktrace.h
structs.h Fixed http address in some scripts (Bug #3460) 2004-04-28 17:45:08 +03:00
table.cc Code style fixes. 2004-08-28 00:49:54 +03:00
table.h Fix for bug #4131 "TIMESTAMP columns missing minutes and seconds when 2004-09-27 00:50:00 +04:00
thr_malloc.cc
time.cc Fix for bug #2523 '"func_time" test fails on QNX'. 2004-01-30 19:15:11 +03:00
udf_example.cc Update mysql-test results after merge 2002-09-18 02:21:29 +03:00
uniques.cc Fix for bug #1980 2003-12-02 21:05:40 +03:00
unireg.cc crease number of open files to 2048 on windows 2004-02-19 19:36:53 +02:00
unireg.h Fix for BUG#1686 2003-10-29 14:23:35 +01:00
watchdog_mysqld