erlangbureau / jamdb_sybase

SAP Sybase ASE Database driver for Erlang
MIT License
11 stars 2 forks source link

Driver does not return field aliases #2

Closed kostiushkin closed 10 years ago

kostiushkin commented 10 years ago

Driver does not return field aliases

kostiushkin commented 10 years ago

The most appropriate solution to this problem would be something like this:

FieldNames = [begin
   case Fmt#format.label_name of
      <<>> ->
         Fmt#format.column_name;
      Name ->
         Name
   end
end || Fmt <- RowFormat]