Skip navigation links

MySQL Forums :: Ruby :: table field information returning wrong length in 5.5.16


Advanced Search

table field information returning wrong length in 5.5.16
Posted by: Donald Leslie ()
Date: December 27, 2011 01:49PM

I have an application where I use the table field sizes to set widths in a gtk form.

After doing updating my system to opensuse 12.1 the forms no longer had the correct sizes. MySQL had been updated to V14.14 Distrib 5.5.16 x86_64. I do not know what it had been previously.

The code which was failing had the following:

info = dbh.list_fields
info.fetch_fields.each do |fields|
field_info = field.hash

For example a field with the type varchar(40) field_info['length'] had the value 120. I had another system where I had also updated opensuse but I had installed
V14.14 Distrib 5.5.19 x86_64. As a result I removed mysql and installed the later
version and the problem went away.

5.5.16 is the version available from the suse repository. To get 5.5.19 I had to go to your web site.

Options: ReplyQuote


Subject Written By Posted
table field information returning wrong length in 5.5.16 Donald Leslie 12/27/2011 01:49PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.