Page 1 of 1

Issue with function. s9y_fetchCategories+pgsql (svn-snapsh.)

Posted: Mon Dec 19, 2005 8:00 pm
by Boris
In the current svn-snapshot (s9y_200512181438.tar.gz) I had an issue with an fresh install on Postgresql.
The function serendipity_fetchCategories in functions_entries.inc.php only looks if the result of the query is an array or not. But Postgres returns no Array if the result is empty. Instead true is returned and a false on failure.

Re: Issue with function. s9y_fetchCategories+pgsql (svn-snap

Posted: Mon Dec 19, 2005 8:35 pm
by garvinhicking
What issue did you face, what happened and which behaviour did you expect?

Serendipity uses a DB layer, and that one returns arrays or strings, so it is not related to postgresql itself.

Best regards,
Garvin

Re: Issue with function. s9y_fetchCategories+pgsql (svn-snap

Posted: Mon Dec 19, 2005 9:56 pm
by Boris
garvinhicking wrote:What issue did you face, what happened and which behaviour did you expect?
:oops: Forgotten

If you have no categorie at all, i shows an "Query failed: 0".(I think, can't have a look at it now) in the plugin-field and somewhere in the admin-pages.
I'll look at it tomorrow again.

Re: Issue with function. s9y_fetchCategories+pgsql (svn-snap

Posted: Wed Dec 21, 2005 6:03 pm
by Boris
Boris wrote:If you have no categorie at all, i shows an "Query failed: 0".(I think, can't have a look at it now) in the plugin-field and somewhere in the admin-pages.
I'll look at it tomorrow again.
It's "Query Failed: 1" and accours in the Categories-Section of the admin-panel and the sidbar-categories-list if you have no categories.
Of course using the Categories-Plugin if you have no Categories is stupid, so the message in the admin-panel is the really "ugly" relevant.