aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_mysql.cpp
Commit message (Expand)AuthorAgeFilesLines
* Clean up a bunch of contructors and destructors.Gravatar Sadie Powell2020-11-011-1/+0
* Convert ConfigTag from reference<> to std::shared_ptr<>.Gravatar Sadie Powell2020-10-311-2/+2
* Add stdalgo::iterator_range and switch config tag reading to use it.•••This allows us to use range-based for loops which were not possible with the previous config tag system. Gravatar Sadie Powell2020-10-311-5/+6
* Merge branch 'insp3' into master.Gravatar Sadie Powell2020-05-051-5/+5
|\
| * Update copyright headers.Gravatar InspIRCd Robot2020-04-241-2/+2
| * Fixes by misspell-fixerGravatar InspIRCd Robot2020-04-211-3/+3
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-04-111-1/+1
|\|
| * Fix an oversight in mkversions that caused it to not update extras.Gravatar Sadie Powell2020-04-101-1/+1
* | Improve storage of module description, flags, and link data.Gravatar Sadie Powell2020-04-111-6/+6
* | Use C++11 inline initialisation for class members.Gravatar Sadie Powell2020-02-061-15/+4
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-171-3/+10
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-01-111-3/+10
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-12-081-51/+61
|\|
| * Refactor the MySQL code slightly.Gravatar Peter Powell2019-11-161-9/+10
| * Refactor the MySQL query and result queue classes.Gravatar Peter Powell2019-11-131-33/+52
| * Get rid of some dead code in the MySQL module.Gravatar Peter Powell2019-11-131-9/+0
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-11-131-19/+36
|\|
| * Improve the logic around connecting to a MySQL server.•••- The connection timeout can now be customised with <database:timeout>. - <database:port> is now limited to the 1-65535 range. - The MySQL library will now not install a SIGPIPE handler as it would override the default InspIRCd ignore behavopur. - Errors caused by setting the default character set and executing the initial query are now no longer ignored. Gravatar Peter Powell2019-11-131-17/+32
| * Add GetId() to the SQL::Provider class.Gravatar Peter Powell2019-11-131-2/+4
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-09-231-23/+35
|\|
| * Improve escaping strings in the MySQL module.Gravatar Peter Powell2019-08-201-23/+29
| * Initialise and deallocate the MySQL library correctly.Gravatar Peter Powell2019-08-201-0/+6
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-07-161-1/+10
|\|
| * Add package names for ArchLinux.Gravatar Peter Powell2019-07-161-0/+1
| * Reset diagnostic pragmas after including external headers (#1661).Gravatar linuxdaemon2019-06-241-0/+7
| * Log SQL queries at the debug log level.•••This makes debugging issues easier. Gravatar Peter Powell2019-06-141-0/+1
| * Replace all abstract usages of his/he/her with they/their/it.Gravatar Peter Powell2019-06-071-1/+1
* | Replace socketengine_{pthread,win32} with C++11 threads.Gravatar Sadie Powell2019-05-151-12/+12
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-05-151-1/+1
|\|
| * Textual improvements and fixes such as typos, casing, etc. (#1612)Gravatar Robby2019-04-281-1/+1
* | ModuleManager: remove fakederef.Gravatar Sadie Powell2019-02-071-2/+2
* | LogManager: remove fakederef.Gravatar Sadie Powell2019-02-071-1/+1
* | Stop silencing warnings about `long long` not existing.•••We use C++14 now which has `long long`. Gravatar Sadie Powell2019-01-251-7/+0
* | Replace the override macro with the override keyword.Gravatar Sadie Powell2019-01-251-13/+13
|/
* Fix SQL modules using "provider" in <database> instead of "module".•••This fixes a regression introduced in 97a1d642. Gravatar Peter Powell2018-09-271-1/+1
* Fix a few things that should be marked as override but aren't.Gravatar Peter Powell2018-08-211-1/+1
* Make more config stuff case insensitive.Gravatar Peter Powell2018-07-241-1/+1
* Use mysql_real_escape_string instead of mysql_escape string.•••This is not exploitable as far as I know but it is probably best that we use the newer function just in case. Closes #649 (although the attack mentioned in that issue was not feasible). Gravatar Peter Powell2018-07-151-3/+2
* Add ConfigTag::getUInt for reading unsigned config values.Gravatar Peter Powell2018-04-161-1/+1
* Remove the default value in ConfigTag::get{Duration,Float,Int}.Gravatar Peter Powell2018-04-161-1/+1
* SQL: Add HasColumn() to check if a result contains a named column.Gravatar Daniel Vassdal2018-04-071-0/+13
* Fix building on Windows (mostly).Gravatar Peter Powell2018-02-171-2/+2
* Improve and modernize the SQL system API.•••- 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. Gravatar Peter Powell2017-12-221-26/+26
* Add the override keyword in places that it is missing.•••GCCs warnings for this are much better than Clangs. Gravatar Peter Powell2017-11-211-8/+8
* 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.•••When we release 3.0 these links will break as they will point to the pages for 3.0 rather than 2.0. Gravatar Peter Powell2017-10-151-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.•••NO_CLIENT_LONG_LONG was removed in a recent version of MySQL. Gravatar Peter Powell2016-08-191-2/+6