path: root/lib/POE/Component/
AgeCommit message (Collapse)AuthorFilesLines
2009-11-04Fixed infinite loop bug on SQL error in the canwrite eventHEADmasterYorhel1-1/+4
This is actually caused by two bugs: - The query that caused the error is not removed from the queue, so it will be executed again. (triggering another error) - The select_write() is still active on the socket, even when we don't have anything to write. I've been aware of this bug for quite a while, but could never track it down. Now I finally know what really happened when my applications got in an infinite loop.
2009-08-09Give query execution time as argument to the results functionYorhel1-1/+4
2009-07-17Send LISTEN queries on (re)connectYorhel1-2/+8
2009-07-17Don't process queries if we're not connectedYorhel1-3/+3
Queries will now be queued untill we are connected. This may be what you want in some cases, but may not in other cases... At least it's the easiest way of handling DB requests without being connected.
2009-07-17Check for notifications -before- query resultsYorhel1-7/+7
It took me an entire day just to find out why the heck PoCo::Pg wouldn't always receive a dbi_canread event when the query result is available. Found out it was because pg_notifies does, apparently, read something from the socket. (But apparently not in a blocking way... so it was hard to detect...)
2009-07-17Updated the listen and unlisten events to use the new 'do' argumentsYorhel1-4/+4
2009-07-17Check for the existance of QARG instead of it's valueYorhel1-1/+1
2009-07-15Changed arguments of the query and do events to be shorterYorhel1-10/+8
No need to for named arguments if they aren't likely to change and you'll often need to specify all arguments, anyway.
2009-07-15Don't use pg_enable_utf8 in connectYorhel1-1/+1
This is something that should be specified in the dsn argument, as it's application-specific.
2009-07-15Added a minimal object interfaceYorhel1-20/+67
Completely untested, though
2009-05-17Added two basic testsYorhel1-1/+0
2009-05-17Added MANIFEST and README, moved TODO list and fixed typoYorhel1-9/+1
2009-05-17Initial commitYorhel1-0/+273