Support PostgreSQL 9.0 (EJAB-1359)(thanks to Stephen Gibberd and Konstantin Nikiforov)

This commit is contained in:
Badlop 2010-12-03 12:43:05 +01:00
parent c890b17834
commit 8258f5940b
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ pgsql_to_odbc({ok, PGSQLResult}) ->
[pgsql_item_to_odbc(Item) || Item <- Items]
end.
pgsql_item_to_odbc({"SELECT", Rows, Recs}) ->
pgsql_item_to_odbc({"SELECT" ++ _, Rows, Recs}) ->
{selected,
[element(1, Row) || Row <- Rows],
[list_to_tuple(Rec) || Rec <- Recs]};