summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_pgsql.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change to use GetId() and ID rather than GetData() and dataGravatar om2006-07-231-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4531 e03df62e-2008-0410-955e-edbf42e46eb7
* Free, as they should be, fieldlist and/or fieldmap in destructor of ↵Gravatar om2006-07-231-0/+7
| | | | | | PgSQLresult *if* they were allocated git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4525 e03df62e-2008-0410-955e-edbf42e46eb7
* Make m_pgsql return the number of affected rows for an UPDATE or INSERT query.Gravatar om2006-07-221-4/+14
| | | | | | 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
* 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
* 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
* 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
* 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-221-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4491 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
* Add tiny perl script to detect version and pass an appropriate -D to gcc. ↵Gravatar om2006-07-211-3/+8
| | | | | | 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-211-8/+34
| | | | | | Needs proper implementation in m_pgsql and documentation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4471 e03df62e-2008-0410-955e-edbf42e46eb7
* Updates, should be able to safely unload client modules with queries in ↵Gravatar om2006-07-201-3/+53
| | | | | | | | 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
* Okay, working PostgreSQL module, API header and example client module in ↵Gravatar om2006-07-201-9/+150
| | | | | | /extra/, enjoy git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4463 e03df62e-2008-0410-955e-edbf42e46eb7
* Okay, this is getting towards working now. It just needs the API ↵Gravatar om2006-07-201-378/+496
| | | | | | finishing...everything in the backend part seems to be working okay git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4456 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes/codes of the query queue, various prototypes and stuff...mostly ↵Gravatar om2006-07-161-26/+42
| | | | | | commited so I can do other stuff without typing the paths out manually git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4401 e03df62e-2008-0410-955e-edbf42e46eb7
* Making lots of stuff inherit from classbase so we can use it as a holdall ↵Gravatar brain2006-07-101-1/+1
| | | | | | class that we can throw around with dynamic_cast<> git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4297 e03df62e-2008-0410-955e-edbf42e46eb7
* Okay..updates to u_listmode, general cleanups and add some virtual methods ↵Gravatar om2006-07-091-58/+103
| | | | | | | | which subclasses can override to alter behaviour..all looking much nicer and more flexible now. Update m_chanfilter to use u_listmode, demonstrates most or all of the new features of it and looks a hell of a lot prettier :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4201 e03df62e-2008-0410-955e-edbf42e46eb7
* More stuff for m_pgsql in, provider-side API stuff semi-doneGravatar om2006-07-071-45/+152
| | | | | | Add m_sqlv2 header for the new API git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4122 e03df62e-2008-0410-955e-edbf42e46eb7
* modules.*: Put some void* back to char*, sorry if they were only like that ↵Gravatar om2006-07-071-28/+36
| | | | | | because of me... :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4119 e03df62e-2008-0410-955e-edbf42e46eb7
* Change InspSocket's private members to only be protected, I couldn't find ↵Gravatar om2006-07-031-0/+519
any other way to do this before we get around to rewriting the socket engine. Commit very first, very alpha, not-very functional version of the PostgreSQL module. It compiles..and that's..err..about it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4112 e03df62e-2008-0410-955e-edbf42e46eb7