|
|||||||||||
|
Re: bk commit into 5.1 tree (anozdrin:1.2575) BUG#24923
From: Marc Alff <marc.alff(at)mysql.com>
Date: Thu Oct 11 2007 - 11:26:44 EDT Hi Alik The following should be addressed before pushing this patch: 1) The result for the test sp.test is missing, I can't see what the actual result is 2)
The test is incomplete:
3)
The database installation scripts have changed for CREATE TABLE ...
mysql.proc,
What about an upgrade from 5.0 to 5.1 ?
Has the upgrade scenario be considered ? 4)
According to the CSET comments, a truncation does not cause
CREATE FUNCTION to fail, it's only a warning.
If the function code is not stored properly (hence my request for SHOW
CREATE FUNCTION),
5) This is minor, but I noticed this coding style for test scripts: +--echo # Whether this looks good or not in the source code (the .test file), and in the result file (with banners) is a matter of personal taste, personally I don't like it but can live with it. What concerns me much more is that this style, if propagated to the code base, has a pervert effect on merges: In the code above, the fragment:
actually occupy 11 lines in the source code, while not providing any information what would allow a diff / merge tool to make the difference between this fragment in bug A and the same in bug B.
My concern is that, if we code like this, we will start having merge
problems where
So, please don't use that style. --- Thanks for looking into this. Regards, Marc Alexander Nozdrin wrote: > Below is the list of changes that have just been committed into a local > 5.1 repository of alik. When alik does a push these changes will > be propagated to the main repository and, within 24 hours after the > push, to the public repository. > For information on how to access the public repository > see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html > > ChangeSet@1.2575, 2007-10-08 17:12:56+04:00, anozdrin@station. +3 -0 > Fix for BUG#24923: Functions with ENUM issues. > > The problem was that the RETURNS column in the mysql.proc was of > CHAR(64). That was not enough for storing long-named datatypes. > > The fix is to change CHAR(64) to LONGBLOB, and to throw warnings > at the time a stored routine is created if some data is truncated > during writing into mysql.proc. > > mysql-test/t/sp.test@1.260, 2007-10-08 17:12:53+04:00, anozdrin@station. +57 -0 > Add a test case for BUG#24923. > > scripts/mysql_system_tables.sql@1.16, 2007-10-08 17:12:53+04:00, anozdrin@station. +1 -1 > Change the data type of column 'returns' from char(64) to longblob. > > sql/sp.cc@1.171, 2007-10-08 17:12:53+04:00, anozdrin@station. +7 -0 > Produce warnings if any data was truncated during writing > into mysql.proc. > > diff -Nrup a/mysql-test/t/sp.test b/mysql-test/t/sp.test > --- a/mysql-test/t/sp.test 2007-10-08 02:02:44 +04:00 > +++ b/mysql-test/t/sp.test 2007-10-08 17:12:53 +04:00 > @@ -7665,4 +7665,61 @@ DROP VIEW v2; > > -- MySQL Code Commits Mailing List For list archives: http://lists.mysql.com/commits To unsubscribe: http://lists.mysql.com/commits?unsub=lists@pantek.comReceived on Thu Oct 11 11:27:11 2007 This archive was generated by hypermail 2.1.8 : Thu Jul 03 2008 - 09:44:33 EDT |
||||||||||
|
|||||||||||