# File lib/dbd_odbc/ODBC.rb, line 96 def columns(table) cols = [] stmt = @handle.columns(table) stmt.ignorecase = true stmt.each_hash do |row| info = Hash.new cols << info info['name'] = row['COLUMN_NAME'] info['type_name'] = row['TYPE_NAME'] info['sql_type'] = row['DATA_TYPE'] info['nullable'] = row['NULLABLE'] info['precision'] = row['COLUMN_SIZE'] - (row['DECIMAL_DIGITS'] || 0) info['scale'] = row['DECIMAL_DIGITS'] end stmt.drop cols rescue ODBCErr => err raise DBI::DatabaseError.new(err.message) end