]> granicus.if.org Git - ejabberd/commitdiff
Support PostgreSQL 9.0 (EJAB-1359)(thanks to Stephen Gibberd and Konstantin Nikiforov)
authorBadlop <badlop@process-one.net>
Fri, 3 Dec 2010 11:43:05 +0000 (12:43 +0100)
committerBadlop <badlop@process-one.net>
Fri, 3 Dec 2010 11:43:05 +0000 (12:43 +0100)
src/odbc/ejabberd_odbc.erl

index 4a6481525638e57542ddc5dadb9fc1de6b90013e..0d74ac3e6e15028ad8dce928da1719d14613efa3 100644 (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]};