Loading Docs/manual.texi +7 −12 Original line number Diff line number Diff line Loading @@ -6590,13 +6590,12 @@ Please report bad or out-of-date mirrors to @email{webmaster@@mysql.com}. @c @image{Flags/spain} Spain [MasterD] @c @uref{http://mysql.masterd.es, WWW} @c @item @c Not ok 20000919; Old site (Matt) @item @c EMAIL: Patrik.Karen@sdi.slu.se (Patrik Karen) @c ftp -> remove old files @c @image{Flags/sweden} Sweden [Sunet] @ @c @uref{http://ftp.sunet.se/pub/unix/databases/relational/mysql/, WWW} @c @uref{ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/, FTP} @image{Flags/sweden} Sweden [Sunet] @ @uref{http://ftp.sunet.se/pub/unix/databases/relational/mysql/, WWW} @uref{ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/, FTP} @item @c EMAIL: archive@sunsite.cnlab-switch.ch (Thomas Lenggenhager) Loading @@ -6610,12 +6609,6 @@ Please report bad or out-of-date mirrors to @email{webmaster@@mysql.com}. @c @image{Flags/great-britain} UK [Oyster/UK] @ @c @uref{ftp://ftp.oyster.co.uk/pub/mysql, FTP} @item @c EMAIL: gareth@omnipotent.net (Gareth Watts) @image{Flags/great-britain} UK [Omnipotent/UK] @ @uref{http://mysql.omnipotent.net/, WWW} @uref{ftp://mysql.omnipotent.net/, FTP} @item @c EMAIL: keet@mordor.plig.net (Christiaan Keet) @image{Flags/great-britain} UK [PLiG/UK] @ Loading Loading @@ -36076,7 +36069,9 @@ set-variable = innodb_lock_wait_timeout=50 @end example Note that data files must be < 4G, and < 2G on some file systems! InnoDB does not create directories: some file systems! The total size of data files has to be >= 10 MB. InnoDB does not create directories: you have to create them yourself. Suppose you have a Linux machine with 512 MB RAM and mysql-test/r/func_time.result +2 −2 Original line number Diff line number Diff line Loading @@ -6,8 +6,8 @@ now()-now() weekday(curdate())-weekday(now()) unix_timestamp()-unix_timestamp(no 0 0 0 from_unixtime(unix_timestamp("1994-03-02 10:11:12")) from_unixtime(unix_timestamp("1994-03-02 10:11:12"),"%Y-%m-%d %h:%i:%s") from_unixtime(unix_timestamp("1994-03-02 10:11:12"))+0 1994-03-02 10:11:12 1994-03-02 10:11:12 19940302101112 sec_to_time(9001) sec_to_time(9001)+0 time_to_sec("15:12:22") 02:30:01 23001 54742 sec_to_time(9001) sec_to_time(9001)+0 time_to_sec("15:12:22") sec_to_time(time_to_sec("0:30:47")/6.21) 02:30:01 23001 54742 00:04:57 now()-curdate()*1000000-curtime() 0 strcmp(current_timestamp(),concat(current_date()," ",current_time())) Loading mysql-test/t/func_time.test +2 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,8 @@ select from_days(to_days("960101")),to_days(960201)-to_days("19960101"),to_days( select period_add("9602",-12),period_diff(199505,"9404") ; select now()-now(),weekday(curdate())-weekday(now()),unix_timestamp()-unix_timestamp(now()); select from_unixtime(unix_timestamp("1994-03-02 10:11:12")),from_unixtime(unix_timestamp("1994-03-02 10:11:12"),"%Y-%m-%d %h:%i:%s"),from_unixtime(unix_timestamp("1994-03-02 10:11:12"))+0; select sec_to_time(9001),sec_to_time(9001)+0,time_to_sec("15:12:22"); select sec_to_time(9001),sec_to_time(9001)+0,time_to_sec("15:12:22"), sec_to_time(time_to_sec("0:30:47")/6.21); select now()-curdate()*1000000-curtime(); select strcmp(current_timestamp(),concat(current_date()," ",current_time())); select date_format("1997-01-02 03:04:05", "%M %W %D %Y %y %m %d %h %i %s %w"); Loading sql/ha_innobase.cc +10 −4 Original line number Diff line number Diff line Loading @@ -821,10 +821,6 @@ ha_innobase::open( DBUG_RETURN(1); } /* MySQL allocates the buffer for ref */ ref_length = buff_len; /* Get pointer to a table object in InnoDB dictionary cache */ if (NULL == (ib_table = dict_table_get(norm_name, NULL))) { Loading Loading @@ -861,10 +857,20 @@ ha_innobase::open( primary_key = 0; key_used_on_scan = 0; /* MySQL allocates the buffer for ref */ ref_length = table->key_info->key_length + table->key_info->key_parts + 10; /* One byte per key field is consumed to the SQL NULL info of the field; we add also 10 bytes of safety margin */ } else { ((row_prebuilt_t*)innobase_prebuilt) ->clust_index_was_generated = TRUE; ref_length = DATA_ROW_ID_LEN + 10; dbug_assert(key_used_on_scan == MAX_KEY); } Loading sql/item_func.cc +8 −5 Original line number Diff line number Diff line Loading @@ -309,11 +309,14 @@ double Item_func_div::val() longlong Item_func_div::val_int() { longlong value=args[0]->val_int(); longlong val2=args[1]->val_int(); if ((null_value= val2 == 0 || args[0]->null_value || args[1]->null_value)) return 0; return value/val2; // the integer result of division of two arguments needs to be computed // as a type-cast division of val(), not as diviion of val_int() of each // argument. For example, val_int(41.5/3.4) = val_int(12.206) = 12, but // if you do val_int(41.5)/val_int(3.4), as in the old code, we get 42/3= // 14, which is wrong. This would break sec_to_time(a/b), // from_unixtime(a/b), and // all functions that do val_int() on their arguments return (longlong)val(); } void Item_func_div::fix_length_and_dec() Loading Loading
Docs/manual.texi +7 −12 Original line number Diff line number Diff line Loading @@ -6590,13 +6590,12 @@ Please report bad or out-of-date mirrors to @email{webmaster@@mysql.com}. @c @image{Flags/spain} Spain [MasterD] @c @uref{http://mysql.masterd.es, WWW} @c @item @c Not ok 20000919; Old site (Matt) @item @c EMAIL: Patrik.Karen@sdi.slu.se (Patrik Karen) @c ftp -> remove old files @c @image{Flags/sweden} Sweden [Sunet] @ @c @uref{http://ftp.sunet.se/pub/unix/databases/relational/mysql/, WWW} @c @uref{ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/, FTP} @image{Flags/sweden} Sweden [Sunet] @ @uref{http://ftp.sunet.se/pub/unix/databases/relational/mysql/, WWW} @uref{ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/, FTP} @item @c EMAIL: archive@sunsite.cnlab-switch.ch (Thomas Lenggenhager) Loading @@ -6610,12 +6609,6 @@ Please report bad or out-of-date mirrors to @email{webmaster@@mysql.com}. @c @image{Flags/great-britain} UK [Oyster/UK] @ @c @uref{ftp://ftp.oyster.co.uk/pub/mysql, FTP} @item @c EMAIL: gareth@omnipotent.net (Gareth Watts) @image{Flags/great-britain} UK [Omnipotent/UK] @ @uref{http://mysql.omnipotent.net/, WWW} @uref{ftp://mysql.omnipotent.net/, FTP} @item @c EMAIL: keet@mordor.plig.net (Christiaan Keet) @image{Flags/great-britain} UK [PLiG/UK] @ Loading Loading @@ -36076,7 +36069,9 @@ set-variable = innodb_lock_wait_timeout=50 @end example Note that data files must be < 4G, and < 2G on some file systems! InnoDB does not create directories: some file systems! The total size of data files has to be >= 10 MB. InnoDB does not create directories: you have to create them yourself. Suppose you have a Linux machine with 512 MB RAM and
mysql-test/r/func_time.result +2 −2 Original line number Diff line number Diff line Loading @@ -6,8 +6,8 @@ now()-now() weekday(curdate())-weekday(now()) unix_timestamp()-unix_timestamp(no 0 0 0 from_unixtime(unix_timestamp("1994-03-02 10:11:12")) from_unixtime(unix_timestamp("1994-03-02 10:11:12"),"%Y-%m-%d %h:%i:%s") from_unixtime(unix_timestamp("1994-03-02 10:11:12"))+0 1994-03-02 10:11:12 1994-03-02 10:11:12 19940302101112 sec_to_time(9001) sec_to_time(9001)+0 time_to_sec("15:12:22") 02:30:01 23001 54742 sec_to_time(9001) sec_to_time(9001)+0 time_to_sec("15:12:22") sec_to_time(time_to_sec("0:30:47")/6.21) 02:30:01 23001 54742 00:04:57 now()-curdate()*1000000-curtime() 0 strcmp(current_timestamp(),concat(current_date()," ",current_time())) Loading
mysql-test/t/func_time.test +2 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,8 @@ select from_days(to_days("960101")),to_days(960201)-to_days("19960101"),to_days( select period_add("9602",-12),period_diff(199505,"9404") ; select now()-now(),weekday(curdate())-weekday(now()),unix_timestamp()-unix_timestamp(now()); select from_unixtime(unix_timestamp("1994-03-02 10:11:12")),from_unixtime(unix_timestamp("1994-03-02 10:11:12"),"%Y-%m-%d %h:%i:%s"),from_unixtime(unix_timestamp("1994-03-02 10:11:12"))+0; select sec_to_time(9001),sec_to_time(9001)+0,time_to_sec("15:12:22"); select sec_to_time(9001),sec_to_time(9001)+0,time_to_sec("15:12:22"), sec_to_time(time_to_sec("0:30:47")/6.21); select now()-curdate()*1000000-curtime(); select strcmp(current_timestamp(),concat(current_date()," ",current_time())); select date_format("1997-01-02 03:04:05", "%M %W %D %Y %y %m %d %h %i %s %w"); Loading
sql/ha_innobase.cc +10 −4 Original line number Diff line number Diff line Loading @@ -821,10 +821,6 @@ ha_innobase::open( DBUG_RETURN(1); } /* MySQL allocates the buffer for ref */ ref_length = buff_len; /* Get pointer to a table object in InnoDB dictionary cache */ if (NULL == (ib_table = dict_table_get(norm_name, NULL))) { Loading Loading @@ -861,10 +857,20 @@ ha_innobase::open( primary_key = 0; key_used_on_scan = 0; /* MySQL allocates the buffer for ref */ ref_length = table->key_info->key_length + table->key_info->key_parts + 10; /* One byte per key field is consumed to the SQL NULL info of the field; we add also 10 bytes of safety margin */ } else { ((row_prebuilt_t*)innobase_prebuilt) ->clust_index_was_generated = TRUE; ref_length = DATA_ROW_ID_LEN + 10; dbug_assert(key_used_on_scan == MAX_KEY); } Loading
sql/item_func.cc +8 −5 Original line number Diff line number Diff line Loading @@ -309,11 +309,14 @@ double Item_func_div::val() longlong Item_func_div::val_int() { longlong value=args[0]->val_int(); longlong val2=args[1]->val_int(); if ((null_value= val2 == 0 || args[0]->null_value || args[1]->null_value)) return 0; return value/val2; // the integer result of division of two arguments needs to be computed // as a type-cast division of val(), not as diviion of val_int() of each // argument. For example, val_int(41.5/3.4) = val_int(12.206) = 12, but // if you do val_int(41.5)/val_int(3.4), as in the old code, we get 42/3= // 14, which is wrong. This would break sec_to_time(a/b), // from_unixtime(a/b), and // all functions that do val_int() on their arguments return (longlong)val(); } void Item_func_div::fix_length_and_dec() Loading