aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_mysql.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2021-08-271-2/+2
|
* Fix various spelling issues (#1883).Gravatar Josh Soref2021-06-211-3/+3
| | | | Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* Migrate Windows builds to installing their dependencies via Conan.Gravatar Sadie Powell2021-06-071-1/+1
|
* Update copyright headers.Gravatar InspIRCd Robot2020-04-241-2/+2
|
* Fixes by misspell-fixerGravatar InspIRCd Robot2020-04-211-3/+3
|
* Fix an oversight in mkversions that caused it to not update extras.Gravatar Sadie Powell2020-04-101-1/+1
|
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-3/+10
|
* 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
|
* 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
|
* 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
|
* 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
|
* Textual improvements and fixes such as typos, casing, etc. (#1612)Gravatar Robby2019-04-281-1/+1
|
* 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.
* 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
|/