[hermes] Fwd: [dev] Re: Bugs

Chuck Hagenbuch chuck at horde.org
Mon Jul 21 12:48:30 PDT 2003


Can someone currently working on/using Hermes comment on the last patch? I'm
committing the first two changes.

----- Forwarded message from joeman at leederville.net -----
    Date: Tue, 22 Jul 2003 02:46:50 +0800
    From: Joseph P Turner <joeman at leederville.net>
Reply-To: Joseph P Turner <joeman at leederville.net>
 Subject: [dev] Re: Bugs
      To: dev at lists.horde.org


Well, that was a fast response!

Ok, I'm moving our install from mysql to Oracle (9i actually) and I've noticed a
few bugs, mainly in the for of discrepancies between sql syntax.

There are a few fixes I've done, but will just put one through first (just to be
sure that any others I post are in a format you guys like).

ok
hermes/lib/Driver/sql.php

92a93
>
169c170
<                        ' j.jobtype_name as _type_name,' .
---
>                        ' j.jobtype_name as "_type_name",' .
173c174
<                        ' b.timeslice_date as date,' .
---
>                        ' b.timeslice_date as "date",' .
198c199
<                     $sql .= $glue . ' timeslice_date <= ' . (int)$filter;
---
>                     $sql .= $glue . ' timeslice_date <= ' . (int)($filter +1);


This patch puts '"' around column aliases that Oracle doesn't like.
It also fixes problem when viewing jobs on Sunday (When jobs are recorded on
Hermes, they are set at Midnight + 1 second. The query to retreive jobs for the
week does not take into account this offset of 1 second.

Give me some feed back so I can provide you with better patches, etc. (I'm
absolutely buggered at the moment - spent a lot of time resolving these issues,
so excuse rambling and bad english)

Cheers

Joe

--
Linux Madman

--
Horde developers mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe at lists.horde.org



----- End forwarded message -----


-chuck

--
Charles Hagenbuch, <chuck at horde.org>
They're just looking at a wall of meat.


More information about the hermes mailing list