Pb with query submitted more than 2 times

3 views
Skip to first unread message

Asthro

unread,
Jul 13, 2011, 3:31:58 AM7/13/11
to rainframework
Hi !
A strange behaviour was observed today :
I have an array, with some records, some are the same.
When I query about the first one I got a result (of course !)
Second time : too (naturally!) and this time the result is took from
the cache.
Third time : nothing ! Empty object .. strange isn't it ?

Try to submit 3 times a "get_object_list", and the third time, the
object will be lost.

I figured it out by reconnecting to the DB (as if the link was lost)
"db->connect()".

Nothing in the rain code seems to be the problem, might be my MySql
config.
If anybody find something....

Thanks !

Thomas

Federico Ulfo

unread,
Jul 13, 2011, 3:46:41 AM7/13/11
to rainfr...@googlegroups.com
Hi, the db class uses PDO to connect to the database, we'll definitely check this issue to see if replicable and fixable, thanks for your report, could you add a ticket on the github repository? It's easier for us to keep truck of bug in there.

Thanks

Asthro

unread,
Jul 15, 2011, 11:36:07 AM7/15/11
to rainframework
Well, our problem is not replicable here ! ... Argh.
So I think it's a local one, we have to clean up a bit our models &
check.

It seems we have 2 queries identical in 2 fns with the same name ...
It might be the big issue....

I'm porting my application to the latest version, boring, but useful !
I'll tell you there.

Regards.
Reply all
Reply to author
Forward
0 new messages