|
Ok...We are really having some sql syntax issues here with agenda...What version of Postgres are you using to develop with? Are you installing and building on a clean postgres install when you test? BTW I am running PostgreSQL 7.3.3. As far as my last error message goes: DBD::Pg::db selectall_arrayref failed: ERROR: Function abs(text) does not exist at /home/httpd/htdocs/agenda/modules/Agenda/people.pm line 511.
[Fri Aug 22 14:33:56 2003] [error] Can't use an undefined value as an ARRAY reference at /home/httpd/htdocs/agenda/modules/Agenda/people.pm line 516. I corrected this and belive it to be a bug...The SQL statment found in the people.pm->get_birthdays sub had some bad syntax with regards to typecasting. I have updated lines 512-515 in people.pm to this : select usr_login, usr_first_name, usr_last_name, to_char(usr_birthday,'DD.MM.YYYY') as birthday, usr_email from users where abs(CAST(to_char(usr_birthday,'DDD') AS INT4)) - abs(CAST(to_char(current_date,'DDD') AS INT4)) between 0 and ? order by abs(CAST(to_char(usr_birthday,'DDD')AS INT4))", $Agenda::FIXUP, $self->{parent}{config}{BIRTHDAY_REMINDER}); If you notice I had to use the (CAST(...AS INT4)) function to get this query to work on my system. The new error in apache error_log is: DBD::Pg::db selectall_arrayref failed: ERROR: Unable to identify an operator '-' for types 'timestamp with time zone' and 'integer' at /home/httpd/htdocs/agenda/modules/Agenda/tasks.pm line 1273.
[Fri Aug 22 15:07:04 2003] [error] Can't use an undefined value as an ARRAY reference at /home/httpd/htdocs/agenda/modules/Agenda/tasks.pm line 1289. Which is yet another SQL related issue...And I haven't even seen the first page yet! Please let me know if there is something I am missing here, as it seems that your installations of Agenda would suffer from the same issues if this was not an installation specific issue. Kind Regards,
Bram Swenson.
<bram@freedomlink.net> |