From 27872c60220734becb47d356539117f6eaa8c217 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 3 Dec 2010 12:43:05 +0100 Subject: [PATCH] Support PostgreSQL 9.0 (EJAB-1359)(thanks to Stephen Gibberd and Konstantin Nikiforov) --- src/odbc/ejabberd_odbc.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/odbc/ejabberd_odbc.erl b/src/odbc/ejabberd_odbc.erl index bc7f9cada..58cb7a608 100644 --- a/src/odbc/ejabberd_odbc.erl +++ b/src/odbc/ejabberd_odbc.erl @@ -509,7 +509,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, [case Row of {desc, _, Col, _, _, _, _, _} -> Col; % Recent pgsql driver API change.