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:
parent
c890b17834
commit
8258f5940b
@ -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]};
|
||||
|
Loading…
Reference in New Issue
Block a user