http://qs1969.pair.com?node_id=774954


in reply to DBIC intermittently returning rows missing date_time value

I put DBIC_TRACE on, but that just gives me the SQL being run, which looks fine.

I have also tried running the URL through the Catalyst test srcipt ala...

myapp_test.pl /tests/report/day_simple/ART_CRV/2009-06-24
this gives the same error, so I guess I can at least rule out apache and modperl. I know this isn't very glamorous guys but I would really appreciate some ideas.

Thanks

---
my name's not Keith, and I'm not reasonable.

Replies are listed 'Best First'.
Re^2: DBIC intermittently returning rows missing date_time value
by Anonymous Monk on Jun 26, 2009 at 08:14 UTC
    Show us the trace output
      As said, looks fine to me.
      SELECT me.id, me.name, me.date_time, me.status_code, me.time_taken FRO +M tests me WHERE ( ( ( date_time <= ? AND date_time >= ? ) AND name = ? ) ) ORDE +R BY date_ time: '2009-06-24 23:59:59', '2009-06-24 00:00:00', 'ART_CRV' Use of uninitialized value $date_time in concatenation (.) or string a +t D:/upload/Websites/iic2/script/../lib/iic2/Controller/tests/report. +pm line 26. __SNIPPED_A_WHOLE_BUNCH_OF_THESE_THAT_ARE_ALL_THE_SAME_AND_RELATE_TO_T +HE_MISSING_DATE Use of uninitialized value $date_time in concatenation (.) or string a +t D:/upload/Websites/iic2/script/../lib/iic2/Controller/tests/report. +pm line 26. [info] *** Request 1292 (0.005/s) [6088] [Mon Jun 29 11:54:59 2009] ** +* [debug] "GET" request for "tests/report/day_simple/ART_CRV/2009-06-24" + from "127 .0.0.1" [debug] Path is "tests/report/day_simple" [debug] Arguments are "ART_CRV/2009-06-24" [info] Request took 0.151744s (6.590/s) .------------------------------------------------------------+-------- +---. | Action | Time + | +------------------------------------------------------------+-------- +---+ | /tests/report/day_simple | 0.12781 +2s | | /end | 0.00176 +9s | '------------------------------------------------------------+-------- +---'

        Nowhere in your posted code is a variable with name $date_time shown, yet Perl reports a variable with that name as causing the warning. Either Perl made up the variable name on the spot or you didn't show us the code that's causing this (D:/upload/Websites/iic2/lib/iic2/Controller/tests/report.pm).