aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_mysql.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix building on Windows (mostly).Gravatar Peter Powell2018-02-171-2/+2
|
* Improve and modernize the SQL system API.Gravatar Peter Powell2017-12-221-26/+26
| | | | | | | | | | | | | - Move everything into the SQL namespace and drop the SQL prefix. - Move SQLProvider::PopulateUserInfo to SQL::PopulateUserInfo. - Rename SQLEntry to SQL::Field and clean up. - Rename SQLEntries to SQL::Row. - Rename SQLerror to SQL::Error and clean up. - Rename SQLerrorNum to SQL::ErrorCode and drop the SQL_ prefix. - Rename ParamL to SQL::ParamList. - Rename ParamM to SQL::ParamMap; - Make implementing SQLQuery::OnError mandatory. - Redo most of the documentation in the sql header.
* Add the override keyword in places that it is missing.Gravatar Peter Powell2017-11-211-8/+8
| | | | GCCs warnings for this are much better than Clangs.
* Merge tag 'v2.0.25' into master.Gravatar Peter Powell2017-11-121-2/+0
|\
| * Update wiki links to use HTTPS and point to the correct pages.Gravatar Peter Powell2017-10-151-2/+0
| | | | | | | | | | When we release 3.0 these links will break as they will point to the pages for 3.0 rather than 2.0.
* | Add PackageInfo directives for Debian.Gravatar Peter Powell2017-10-211-0/+1
| |
* | Add CentOS PackageInfoGravatar Adam2016-09-161-0/+2
| |
* | Rewrite the build system directive parser.Gravatar Peter Powell2016-09-161-3/+6
| |
* | Fix m_mysql warning about use of C++11 features on C++03.Gravatar Peter Powell2016-08-191-2/+6
| | | | | | | | NO_CLIENT_LONG_LONG was removed in a recent version of MySQL.
* | m_mysql Add charset config optionGravatar Florian Praden2015-02-061-0/+6
| |
* | Change type of some associative containers to their flat versions, including ↵Gravatar Attila Molnar2014-12-151-1/+1
| | | | | | | | Extensible storage
* | Merge insp20Gravatar Attila Molnar2014-07-251-3/+1
|\|
| * Change Windows libraries to be dynamically linkedGravatar Adam2014-04-131-3/+1
| |
* | Change allocation of InspIRCd::Threads to be physically part of the object ↵Gravatar Attila Molnar2014-06-131-1/+1
| | | | | | | | containing it
* | Replace OnRehash() with ReadConfig() that is called on boot, on module load ↵Gravatar attilamolnar2013-08-301-4/+2
| | | | | | | | | | | | and on rehash This eliminates the need for calling OnRehash() in init()
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-041-3/+0
| |
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-1/+0
| |
* | Merge insp20Gravatar attilamolnar2013-06-061-12/+18
|\|
| * Remove unnecessary string copies and dead codeGravatar attilamolnar2013-06-051-1/+0
| |
| * m_mysql Fix escaping strings longer than MAXBUF/2Gravatar attilamolnar2013-06-011-6/+12
| | | | | | | | | | | | | | | | | | Quotes from the documentation: "You must allocate the to buffer to be at least length*2+1 bytes long. (In the worst case, each character may need to be encoded as using two bytes, and you need room for the terminating null byte.)" "The return value is the length of the encoded string, not including the terminating null character." http://dev.mysql.com/doc/refman/5.6/en/mysql-real-escape-string.html
| * m_mysql Fix crash on rehash when the database tags have been changed in the ↵Gravatar attilamolnar2013-05-221-5/+6
| | | | | | | | config
* | Tidy up keywords on module methods.Gravatar Peter Powell2013-05-151-10/+10
| | | | | | | | | | - Remove virtual keyword from a ton of methods which don't need it. - Add override keyword to a ton of methods which do need it.
* | Tidy up source files:Gravatar Peter Powell2013-04-121-1/+1
| | | | | | | | | | | | - Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-4/+0
|/
* Dynamically determine the size of the eventlist[] passed to Attach()Gravatar attilamolnar2012-12-021-1/+1
| | | | m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
* Windows: In-depth cleanup (see details)Gravatar ChrisTX2012-10-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714
* Remove superfluous std::string()sGravatar attilamolnar2012-10-121-1/+1
|
* Fixed crash in m_mysql if a module is unloaded while executingGravatar Adam2012-09-131-1/+1
| | | | a query and there is only one query in the queue to be executed.
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+17
|
* Fix extras compilation under WindowsGravatar Adam2011-06-181-1/+3
|
* Remove m_sqlv2.h from these modules, they both use v3 now.Gravatar Dennis Friis2010-10-151-1/+0
|
* Fix $md5pass and $sha256pass in SQL queriesGravatar Daniel De Graaf2010-08-041-1/+1
|
* Fix MySQL crash on module unload with empty query queueGravatar danieldg2010-03-221-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12652 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix uninit pointer on MySQL initial connectionGravatar danieldg2010-03-131-5/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12635 e03df62e-2008-0410-955e-edbf42e46eb7
* Handle database not present a bit better, add missing MySQL rehash on initGravatar danieldg2010-03-131-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12634 e03df62e-2008-0410-955e-edbf42e46eb7
* Change SQLv3 to format queries during submission, not beforeGravatar danieldg2010-03-131-58/+58
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12633 e03df62e-2008-0410-955e-edbf42e46eb7
* Add OnUnloadModule hook to MySQLGravatar danieldg2010-03-131-44/+95
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12632 e03df62e-2008-0410-955e-edbf42e46eb7
* Convert MySQL to SQLv3Gravatar danieldg2010-03-131-536/+188
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12629 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix SQL modules not all using AddService, noticed by MorpheusGravatar danieldg2010-03-051-13/+20
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12595 e03df62e-2008-0410-955e-edbf42e46eb7
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Use ServiceProvider for inter-module dependenciesGravatar danieldg2009-11-161-17/+2
| | | | | | | | | | | This will stop dependency chains from preventing module reloads when it is not actually needed; however, it removes some failsafes that will need to be reimplemented in order to avoid unmapped vtables. This deprecates Request as an inter-module signaling mechanism, although SQL still uses it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12140 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow static build of inspircd without module supportGravatar danieldg2009-11-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12083 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove VF_SERVICEPROVIDER, prevent heap allocation of ConfigReaderGravatar danieldg2009-10-181-29/+27
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11904 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove dummy API_VERSION from Version constructorGravatar danieldg2009-10-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11887 e03df62e-2008-0410-955e-edbf42e46eb7
* Update Event and Request APIsGravatar danieldg2009-10-081-33/+26
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11808 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix compilation of SQL modules, use GlobalCulls to clean up deleted modulesGravatar danieldg2009-09-301-5/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11780 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-10/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Describe module purpose in /MODULES outputGravatar danieldg2009-09-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11757 e03df62e-2008-0410-955e-edbf42e46eb7
* Add initial query support to m_mysql [patch by Athenon]Gravatar danieldg2009-09-021-0/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11642 e03df62e-2008-0410-955e-edbf42e46eb7
* Cast rework: use C++ style static_cast<> instead of C-style castsGravatar danieldg2009-09-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11595 e03df62e-2008-0410-955e-edbf42e46eb7