summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_pgsql.cpp
AgeCommit message (Collapse)Author
2007-07-16OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵peavey
auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-17Morebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7356 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-30Apply ipv6 #ifdef tidyup patch from djGrrr, thanks :)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7190 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21Header rearrangement, move inspircd.h to top, remove stdio, stdlib, ↵brain
stdblahblah that we dont even use, remove redeclared <string>, <map>, <vector>. This (1) fixes the irc::string::move warnings on vc8 (2) speeds up compile a lot git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7098 e03df62e-2008-0410-955e-edbf42e46eb7
2007-02-07Fix ipv6 ass-u-me'sbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6540 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-27Correctly allow all supporting versions of PostgreSQL to use secure string ↵peavey
escaping. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6443 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-27The mob has spoken: PQescapeStringConn is used for pgsql >= 8.1.4peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6442 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-17Move QueryQueue class into m_sqlv2 to prevent flat-out duplication of ↵brain
identical code in pgsql and mysql modules git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6368 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-17Mass comment removal.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6367 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14Add eval() and exec() macros, that evaluate perl and execute commands at ↵brain
configure time, rather than delaying them with backticks till compile time. This picks up any errors sooner. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6311 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-12Improve handling of backend server being down. Also decraq some debug output ↵peavey
that was really confusing me. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6301 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-11More tidyup.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6297 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-11Only use force if necessary! Tidy up debug output.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6296 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-11pgsql should now work thx to added posibility to force a fd out of the ↵peavey
socketengine. This should only be used as a *last resort* when dealing with 3rd party libs that invalidates a file descriptor beyond your control. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6295 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-11Closer now, but somehow libpq invalidates the file descriptor on server ↵peavey
shutdown leaving us in limbo. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6294 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-10reconnects still broken, but getting there.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6293 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-10SQLConn rewritten to use EventHandler instead of InspSocket. This is much ↵peavey
neater and gives total control of destroy and delete of resources. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6292 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Document dns caching, add a "bool cached" to OnLookupComplete method in ↵brain
Resolver, and and add " -- cached" to end of 'looking up your host' string if their result is a cached result git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6254 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07DNS caching stuff (almost done)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6252 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07DNS Stuff - this wont work right yet, it will soon (tm)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6250 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Add TTL stuff to dns system (pass it to inherited objects)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6247 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-02Use SQLhost from m_sqlv2.h and tidyup some code. Plus throw less module ↵peavey
exceptions and warn instead. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6212 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-01Fix to allow for OnRehash to know what user initiated the rehashbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6207 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-31Tidyup a bit, get rid of some valgrind warnings.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6191 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30Make it safe to lose connection to sql server.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6183 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30Remove a line of debug that could crash Log.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6180 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30This is a longshot, pls test AnnMaster.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6178 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30The world is coming to an end!!! RUN AWAY!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6175 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30Fix typo in warning, and make it sound less like the world is coming to an end.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6174 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30Now REHASH checks for same and old connections, same as the DNS resolver. So ↵peavey
that the connections are only reset if things were changed. \o/ git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6173 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30Majorly funk around with this, still needs check for config change on REHASH.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6168 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Oops slippy fingers.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6160 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Less debug.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6159 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Fix for rehash/load/unload.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6158 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29Writing beyond malloc'ed mem of a char pointer will crash with a vengeance. ↵peavey
Fix it by actually doing the +1 mentioned in the comment above, but lacking from the actual code. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6155 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28Change the SQLutils and SQL providers to also use interfaces for proper ↵peavey
unload order, taking away the need for a static m_sqlutils. Depend order: m_sqlutils -> sql providers (m_mysql m_pgsql) -> sql modules (m_sqlauth m_sqloper). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6149 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-15Still more massive commit fun. Headers in include/ still to be done, else ↵w00t
that's it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5997 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-04Update $ModDep lines so that these properly depend on their headers in the ↵brain
makefile git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5853 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-19Merge pgsql stuff from darix, but im sure theres something to be looked at ↵brain
in the helper script git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5776 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-10Add fix for patch #166 (this is a reasonably big one)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5679 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-22Oops, memory leaks!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5512 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-19Insert massive change here.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5504 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-06Document more classesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5435 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-01Now with binary versioning goodnessbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5366 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-25Mini security auditbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5333 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-071) Make earlier fix to inspsocket actually compile without errorbrain
2) Make sure that query string is sent back in the reply git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5155 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-18EventHandler class, an abstraction for raw i/obrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4941 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-12Catch exceptions from SQLresolverom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4910 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11Just to mess with om's head, remove helperfuncs.h from everywherebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7