summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-07-22Reorder a couple of constructor prototypes for consistencyom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4512 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Add m_sqlutils - Currently provides ID->chan/user lookupsom
Update m_sqlauth to use m_sqlutils git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4511 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22I hate the fucking mysql devs. Craq smoking bastards.brain
Upon Insert, number of rows is the number of rows effected but the number of columns is 0????? Add check to MySQLreply::Rows() to ensure the user doesnt see N rows and 0 columns! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4510 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Allocate id properlybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4509 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Actually hook up the OnUnloadModule event >_<om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4508 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22This compiles, dont expect it to work yetbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4507 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Logic error, success is when the error ID *is* NO_ERROR :Pom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4505 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Stop publishing MySQL feature - check for successful publishing of SQL featurebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4504 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Stop publishing the PgSQL feature ( :-'( )om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4503 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Fix -modupdate to not break inspircd_se_config.h (a configure-written header ↵brain
that contains an include for the socketengine header) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4502 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Make OnCheckReady safe against the user being killed, SO LONG AS THE MODULE ↵brain
WHICH D/C'S THE USER RETURNS FALSE git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4501 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Explicitly return false after killing user in OnCheckReady() (theoretically ↵om
no change, but just makes sure..) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4500 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22* Change to use QREPLY_FAILbrain
* Adjust error message so that it appears in the format: "<errno>: <err message>" git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4499 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Handle queries failing properly, actually workom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4498 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Set the SQLresult's error field properly when the query failsom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4497 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Add new QREPLY_FAIL error code (bad query syntax etc)om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4496 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Add extra parameter to MySQLresult and SQLresultbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4495 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Fix test client error cheecking on result typesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4494 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Update to SQLv2 APIom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4493 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Set the ID in the request *before* we copy it by value why not..om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4492 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22*hide*, I forgot to include the ID in the SQLresult *rehide*om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4491 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Add back the auto reconnectbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4490 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Test commit to sync after network outagebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4489 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Huge ass comment about how this worksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4488 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Works with the m_testclient test program/suite!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4487 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Error checking and debugbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4486 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Works now (again, to a point)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4485 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Try and find out why stuff isnt workingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4484 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-22Getting a bit furtherbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4483 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Added notification socketbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4482 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21One mess and a half that compiles. To be tidied some day after it works (i ↵brain
dread that day.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4481 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Deal with ? substitution, we're at the point now where we can call the ↵brain
mysql_real_query function (mysql_real_query takes char* and length params, mysql_query just takes char*, and cant deal with NULLs) TODO after this: signal the main ircd thread that theres a result ready on a given db id, and to fetch that result and post it back to the caller git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4480 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Seems to work to a point (dont use it, it wont actually execute a query yet)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4479 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21This now compiles, i gaurantee it doesnt work :Pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4478 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Change includes, use --libs_r rather than mysql_config --libs, we want ↵brain
re-enterant libs for pthreads git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4477 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Move this to m_mysql.cpp - dont even bother reading this yet its unchanged ↵brain
from m_sql git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4476 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Set the query string in the SQLquery to the copy with parameters substituted in.om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4475 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Implemenet parameter substitution (damn sexy if you ask me..)om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4474 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21ParamL needs to be a deque rather than a vector *thwap*om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4473 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Add tiny perl script to detect version and pass an appropriate -D to gcc. ↵om
Make m_pgsql #ifdef around PQescapeStringConn() which is only available in PostgreSQL >= 8.1.4 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4472 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21API header and client module updates for new multi-parameter query request. ↵om
Needs proper implementation in m_pgsql and documentation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4471 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-21Slight tidyup: type name = type(args); --> type name(args);om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4470 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Make SQLexception inherit ModuleExceptionom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4468 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Change formattingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4467 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Add comments, remove debug, alter message in ./configurebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4466 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Fixed, no longer a memory leak (Thread leak)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4465 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Updates, should be able to safely unload client modules with queries in ↵om
progress now... Ideas on how to test this welcome ;p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4464 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Okay, working PostgreSQL module, API header and example client module in ↵om
/extra/, enjoy git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4463 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Someone please take a look at this and tell me why a thread doesnt free ↵brain
itself like it should when it exits, freeing the ram git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4462 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Move a confusing debug message within its conditionalbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4461 e03df62e-2008-0410-955e-edbf42e46eb7