aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_mysql.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Added -Wshorten-64-to-32 and fixed all warnings.Gravatar Dominic Hamon2021-05-301-6/+6
|
* Migrate collections from insert to emplace.Gravatar Sadie Powell2021-04-181-1/+1
|
* Switch simple iterator loops to use range-based for loops.Gravatar Sadie Powell2021-04-071-16/+15
|
* Fix a ton of pedantic compiler warnings.Gravatar Sadie Powell2021-04-041-2/+2
|
* Constify variables within loops.Gravatar Sadie Powell2021-04-011-1/+1
|
* Convert SQL::Field to be a typedef of optional<string>.Gravatar Sadie Powell2021-03-301-1/+1
|
* Use emplace_back where possible.Gravatar Sadie Powell2021-03-301-4/+4
|
* 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.Gravatar Sadie Powell2020-10-311-5/+6
| | | | | This allows us to use range-based for loops which were not possible with the previous config tag system.
* 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.Gravatar Peter Powell2019-11-131-17/+32
| | | | | | | | | | | | | | | | | | - 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.
| * 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.Gravatar Peter Powell2019-06-141-0/+1
| | | | | | | | This makes debugging issues easier.
| * 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.Gravatar Sadie Powell2019-01-251-7/+0
| | | | | | | | We use C++14 now which has `long long`.
* | 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".Gravatar Peter Powell2018-09-271-1/+1
| | | | This fixes a regression introduced in 97a1d642.
* 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.Gravatar Peter Powell2018-07-151-3/+2
| | | | | | | | 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).
* 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.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.