87: def column_info
88: info = []
89: @handle.columns(true).each do |col|
90: info << {
91: 'name' => col.name,
92: 'table' => col.table,
93: 'nullable' => col.nullable,
94: 'searchable' => col.searchable,
95: 'precision' => col.precision,
96: 'scale' => col.scale,
97: 'sql_type' => col.type,
98: 'type_name' => DBI::SQL_TYPE_NAMES[col.type],
99: 'length' => col.length,
100: 'unsigned' => col.unsigned
101: }
102: end
103: info
104: rescue DBI::DBD::ODBC::ODBCErr => err
105: raise DBI::DatabaseError.new(err.message)
106: end