25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-10 16:58:46 +01:00

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

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]};