mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-12 21:52:07 +02: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]
|
[pgsql_item_to_odbc(Item) || Item <- Items]
|
||||||
end.
|
end.
|
||||||
|
|
||||||
pgsql_item_to_odbc({"SELECT", Rows, Recs}) ->
|
pgsql_item_to_odbc({"SELECT" ++ _, Rows, Recs}) ->
|
||||||
{selected,
|
{selected,
|
||||||
[element(1, Row) || Row <- Rows],
|
[element(1, Row) || Row <- Rows],
|
||||||
[list_to_tuple(Rec) || Rec <- Recs]};
|
[list_to_tuple(Rec) || Rec <- Recs]};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user