• unknown's avatar
    Bug #7142 Show Fields from fails using Borland's dbExpress interface · 831e2c7f
    unknown authored
    The problem here is that columns that have an especially long type 
    such as an enum type with many options would be longer than 40 chars
    but the type column returned from show columns always was defined
    as varchar(40).
    
    This is fixed in 5.0 using info schema.
    
    
    mysql-test/r/ps_1general.result:
      update columns which will now be reported as blobs
    mysql-test/r/ps_2myisam.result:
      update columns which will now be reported as blobs
    mysql-test/r/ps_3innodb.result:
      update columns which will now be reported as blobs
    mysql-test/r/ps_4heap.result:
      update columns which will now be reported as blobs
    mysql-test/r/ps_5merge.result:
      update columns which will now be reported as blobs
    sql/item.cc:
      report a column as a particular blob type if it's size warrants
    sql/sql_show.cc:
      Add function to iterate over all the fields of a table and determine 
      the longest type name.
      
      We call this function at the top of our show fields code.  We pass in 
      either 40 or max_len whichever is longer to the ctor of
      Item_empty_string.
    tests/mysql_client_test.c:
      update columns which will now be reported as blobs
    831e2c7f
ps_4heap.result 103 KB