def columns(table_name, name = nil)#:nodoc:
      show_fields_from(table_name, name).map do |field|
        klass = \
          if field[1] =~ GEOMETRY_REGEXP
            ActiveRecord::ConnectionAdapters::SpatialMysql2Column
          else
            ActiveRecord::ConnectionAdapters::Mysql2Column
          end
        klass.new(field[0], field[4], field[1], field[2] == "YES")
      end
    end
def columns(table_name, name = nil)#:nodoc:
      show_fields_from(table_name, name).map do |field|
        klass = \
          if field[1] =~ GEOMETRY_REGEXP
            ActiveRecord::ConnectionAdapters::SpatialMysql2Column
          else
            ActiveRecord::ConnectionAdapters::Mysql2Column
          end
        klass.new(field[0], field[4], field[1], field[2] == "YES")
      end
    end
Redefinition of columns to add the information that a column is geometric