bad implemented list_fields() for postgress and msql
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=953
Reported by Jordi Murgó, The Apostols Unix Cult jordi@lleida.com
while in Sql.pmod/sql.pike you declare list_fields as follows:
array(mapping(string:mixed)) list_fields(string table, string|void wild)
{
array(mapping(string:mixed))|object res;
if (functionp(master_sql->list_fields)) {
if (objectp(res = master_sql->list_fields(table))) {
res = res_obj_to_array(res);
}
....
on postgres.pike and msql.pike the same funcion are declared as:
mapping(string:array(mixed)) list_fields (string table, void|string wild)
I think it should be rewriten and declared:
array(mapping(string:mixed)) list_fields (string table)
(wild is not really needed)