1. Bug
When using erlang-psql-driver directly with ORDER BY, the rows are
reversed. The reason is that in psql_logic.erl, function fetch_result
(From, Result, State), new row is added to the result by [Data |
Result], but finally the result is not reversed by lists:reverse.

2. ErlyDB

When using ErlyDB with PostgreSQL with ORDER BY, the rows are in
correct order, because there are places in erlydb_psql.erl the result
is reversed. For example lists:revese(Fields) at get_metadata.

3. Fix propersal

I propose that both erlang-psql-driver (psql_logic.erl) and
erlydb_psql.erl (ErlyDB) are fixed.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to