aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/extra
Commit message (Collapse)AuthorAgeFilesLines
...
* More stuff to return empty lists and maps when there are no more rows in the ↵Gravatar brain2006-07-231-3/+10
| | | | | | dataset git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4524 e03df62e-2008-0410-955e-edbf42e46eb7
* Adjust m_mysql to match the assumed behaviour of m_pgsql exactly, e.g. when ↵Gravatar brain2006-07-231-10/+17
| | | | | | | | | there are now rows left return an empty row Fix mistake which required a reference to be freed (?!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4523 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyups, optimisations and make the log messages make sense...Gravatar om2006-07-231-10/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4522 e03df62e-2008-0410-955e-edbf42e46eb7
* simple logic error (check they already are +o before you set it), seems to ↵Gravatar om2006-07-231-1/+1
| | | | | | fix +o issue git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4521 e03df62e-2008-0410-955e-edbf42e46eb7
* Mostly updated to new API; Currently doesn't check config o:lines (should be ↵Gravatar om2006-07-231-110/+179
| | | | | | tried before SQL ones); Doesn't seem to set UMODE +o properly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4520 e03df62e-2008-0410-955e-edbf42e46eb7
* Give SQLfield's constructor parameters default values (effectively giving it ↵Gravatar om2006-07-231-1/+1
| | | | | | a default constructor), lets SQLfieldMap actually be useable.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4519 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove unused variable and assignmentGravatar om2006-07-231-2/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4518 e03df62e-2008-0410-955e-edbf42e46eb7
* Make m_pgsql return the number of affected rows for an UPDATE or INSERT query.Gravatar om2006-07-222-12/+29
| | | | | | Make m_testclient do an INSERT and test this :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4517 e03df62e-2008-0410-955e-edbf42e46eb7
* Alter for Rows() == X, Cols() == 0 for 'X rows affected' queriesGravatar brain2006-07-223-15/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4515 e03df62e-2008-0410-955e-edbf42e46eb7
* Change to doxygen-friendly comments, and actually document the lotGravatar brain2006-07-221-15/+206
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4514 e03df62e-2008-0410-955e-edbf42e46eb7
* Change comment to actually be rightishGravatar om2006-07-221-5/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4513 e03df62e-2008-0410-955e-edbf42e46eb7
* Reorder a couple of constructor prototypes for consistencyGravatar om2006-07-222-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4512 e03df62e-2008-0410-955e-edbf42e46eb7
* Add m_sqlutils - Currently provides ID->chan/user lookupsGravatar om2006-07-223-65/+424
| | | | | | Update m_sqlauth to use m_sqlutils git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4511 e03df62e-2008-0410-955e-edbf42e46eb7
* I hate the fucking mysql devs. Craq smoking bastards.Gravatar brain2006-07-222-28/+74
| | | | | | | | 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
* Allocate id properlyGravatar brain2006-07-222-4/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4509 e03df62e-2008-0410-955e-edbf42e46eb7
* Actually hook up the OnUnloadModule event >_<Gravatar om2006-07-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4508 e03df62e-2008-0410-955e-edbf42e46eb7
* This compiles, dont expect it to work yetGravatar brain2006-07-221-128/+225
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4507 e03df62e-2008-0410-955e-edbf42e46eb7
* Logic error, success is when the error ID *is* NO_ERROR :PGravatar om2006-07-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4505 e03df62e-2008-0410-955e-edbf42e46eb7
* Stop publishing MySQL feature - check for successful publishing of SQL featureGravatar brain2006-07-221-2/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4504 e03df62e-2008-0410-955e-edbf42e46eb7
* Stop publishing the PgSQL feature ( :-'( )Gravatar om2006-07-221-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4503 e03df62e-2008-0410-955e-edbf42e46eb7
* Explicitly return false after killing user in OnCheckReady() (theoretically ↵Gravatar om2006-07-221-0/+1
| | | | | | no change, but just makes sure..) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4500 e03df62e-2008-0410-955e-edbf42e46eb7
* * Change to use QREPLY_FAILGravatar brain2006-07-221-1/+1
| | | | | | | * 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
* Handle queries failing properly, actually workGravatar om2006-07-221-18/+33
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4498 e03df62e-2008-0410-955e-edbf42e46eb7
* Set the SQLresult's error field properly when the query failsGravatar om2006-07-221-2/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4497 e03df62e-2008-0410-955e-edbf42e46eb7
* Add new QREPLY_FAIL error code (bad query syntax etc)Gravatar om2006-07-221-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4496 e03df62e-2008-0410-955e-edbf42e46eb7
* Add extra parameter to MySQLresult and SQLresultGravatar brain2006-07-221-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4495 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix test client error cheecking on result typesGravatar brain2006-07-221-8/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4494 e03df62e-2008-0410-955e-edbf42e46eb7
* Update to SQLv2 APIGravatar om2006-07-221-104/+162
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4493 e03df62e-2008-0410-955e-edbf42e46eb7
* Set the ID in the request *before* we copy it by value why not..Gravatar om2006-07-221-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4492 e03df62e-2008-0410-955e-edbf42e46eb7
* *hide*, I forgot to include the ID in the SQLresult *rehide*Gravatar om2006-07-222-5/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4491 e03df62e-2008-0410-955e-edbf42e46eb7
* Add back the auto reconnectGravatar brain2006-07-221-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4490 e03df62e-2008-0410-955e-edbf42e46eb7
* Test commit to sync after network outageGravatar brain2006-07-221-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4489 e03df62e-2008-0410-955e-edbf42e46eb7
* Huge ass comment about how this worksGravatar brain2006-07-221-0/+35
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4488 e03df62e-2008-0410-955e-edbf42e46eb7
* Works with the m_testclient test program/suite!Gravatar brain2006-07-221-4/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4487 e03df62e-2008-0410-955e-edbf42e46eb7
* Error checking and debugGravatar brain2006-07-221-1/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4486 e03df62e-2008-0410-955e-edbf42e46eb7
* Works now (again, to a point)Gravatar brain2006-07-221-4/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4485 e03df62e-2008-0410-955e-edbf42e46eb7
* Try and find out why stuff isnt workingGravatar brain2006-07-221-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4484 e03df62e-2008-0410-955e-edbf42e46eb7
* Getting a bit furtherGravatar brain2006-07-221-6/+81
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4483 e03df62e-2008-0410-955e-edbf42e46eb7
* Added notification socketGravatar brain2006-07-211-85/+90
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4482 e03df62e-2008-0410-955e-edbf42e46eb7
* One mess and a half that compiles. To be tidied some day after it works (i ↵Gravatar brain2006-07-211-3/+166
| | | | | | dread that day.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4481 e03df62e-2008-0410-955e-edbf42e46eb7
* Deal with ? substitution, we're at the point now where we can call the ↵Gravatar brain2006-07-211-2/+72
| | | | | | | | | | 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
* Seems to work to a point (dont use it, it wont actually execute a query yet)Gravatar brain2006-07-211-2/+86
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4479 e03df62e-2008-0410-955e-edbf42e46eb7
* This now compiles, i gaurantee it doesnt work :PGravatar brain2006-07-211-134/+178
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4478 e03df62e-2008-0410-955e-edbf42e46eb7
* Change includes, use --libs_r rather than mysql_config --libs, we want ↵Gravatar brain2006-07-211-3/+6
| | | | | | re-enterant libs for pthreads git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4477 e03df62e-2008-0410-955e-edbf42e46eb7
* Move this to m_mysql.cpp - dont even bother reading this yet its unchanged ↵Gravatar brain2006-07-211-0/+0
| | | | | | from m_sql git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4476 e03df62e-2008-0410-955e-edbf42e46eb7
* Set the query string in the SQLquery to the copy with parameters substituted in.Gravatar om2006-07-211-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4475 e03df62e-2008-0410-955e-edbf42e46eb7
* Implemenet parameter substitution (damn sexy if you ask me..)Gravatar om2006-07-211-25/+79
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4474 e03df62e-2008-0410-955e-edbf42e46eb7
* ParamL needs to be a deque rather than a vector *thwap*Gravatar om2006-07-211-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4473 e03df62e-2008-0410-955e-edbf42e46eb7
* Add tiny perl script to detect version and pass an appropriate -D to gcc. ↵Gravatar om2006-07-212-3/+14
| | | | | | 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
* API header and client module updates for new multi-parameter query request. ↵Gravatar om2006-07-213-16/+84
| | | | | | Needs proper implementation in m_pgsql and documentation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4471 e03df62e-2008-0410-955e-edbf42e46eb7