summaryrefslogtreecommitdiff
path: root/src/ejabberd_sql.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Skip connection exit message when we triggered reconnectionPaweł Chmielowski2022-07-281-0/+2
|
* Handle errors reported from begin/commit inside transactionPaweł Chmielowski2022-07-281-35/+45
|
* Make connection close errors bubble up from inside sql transactionPaweł Chmielowski2022-07-281-22/+50
|
* Catch mysql connection being close earlierPaweł Chmielowski2022-07-191-1/+4
|
* Make first sql reconnect wait shorter timePaweł Chmielowski2022-07-191-4/+9
|
* React to sql driver process exit earlierPaweł Chmielowski2022-07-151-8/+13
| | | | | | | | | If there are queued request when connection closes we may try to process those requests (by trying to send them to already terminated db process, and waiting until we hit timeout) before we see that driver is not longer alive. This change adds check for driver exit before we process next queued sql request, and immediately switch to connection state if we have one.
* Fix errors and warnings for "rebar3 edoc"Badlop2022-05-171-2/+3
|
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* When exporting for SQLite, use its specific escape options (#2576)Badlop2021-05-141-0/+6
|
* Revert "Close pgsql ports on ejabberd_sql process termination (#2541)"Badlop2021-03-181-1/+0
| | | | This reverts commit 404ae56e073253de08604c4137239b7e8248058d.
* Close pgsql ports on ejabberd_sql process termination (#2541)Badlop2021-03-091-0/+1
|
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* also convert embedded errors to binaryFrank Diebolt2020-12-031-1/+1
|
* Added sql_odbc_driver option for mssql dbJerome Sautret2020-10-081-10/+11
| | | | Add an option to choose the ODBC driver when sql_type is set to mssql
* use dsn-less config for mssql (#3131)ChaosKid422020-04-231-44/+8
|
* Also add "escape '\'" to prepared statements in pgsqllike_escapePaweł Chmielowski2020-03-181-1/+1
|
* Add escape '\' to like expression in pgsql to fix problem cockroachdbPaweł Chmielowski2020-03-181-1/+1
| | | | | | Cockroachdb doesn't properly handle escaping of _ in like expressions, having "like ... escape '\'" makes it work, by disabling optimization that causes this broken behaviour
* Change conversion of boolean values for cockroachdbPaweł Chmielowski2020-03-181-2/+2
|
* Fix list parameters in sql queries on pgsqlPaweł Chmielowski2020-02-271-6/+8
|
* Support ssl connection on mysqlPaweł Chmielowski2020-02-261-2/+10
|
* Use SQL ESCAPE statement only with MSSQL and SQLite, improve compatibility ↵Alexey Shchepin2020-02-041-8/+24
| | | | with CockroachDB (#3074)
* Update copyright to 2020 (#3149)Badlop2020-01-281-1/+1
|
* Improve compatibility with CockroachDB (#3074)Alexey Shchepin2019-12-161-0/+5
|
* Improve compatibility with CockroachDB (#3074)Alexey Shchepin2019-12-111-0/+12
|
* Merge branch 'pg_prepared_statements' of ↵Alexey Shchepin2019-11-261-7/+34
|\ | | | | | | | | | | | | | | https://github.com/sabudaye/ejabberd into sabudaye-pg_prepared_statements Conflicts: ejabberd.yml.example src/ejabberd_sql.erl
| * Added option to disable prepared statements (postgresql only)s.budaev2016-10-051-1/+10
| |
* | Correctly handle unicode in log messagesEvgeny Khramtsov2019-09-231-30/+30
| |
* | Fix BEGIN/COMMIT/ROLLBACK syntax for MSSQL (#2978)Alexey Shchepin2019-09-091-5/+21
| |
* | Spawn SQL connections on demand onlyEvgeny Khramtsov2019-08-121-6/+11
| |
* | Improve SQL timeouts handlingEvgeny Khramtsov2019-07-311-78/+79
| | | | | | | | Also improve some formatting
* | Fix SQL connections leakageEvgeny Khramtsov2019-07-301-31/+34
| |
* | Improve SQL pool logicEvgeny Khramtsov2019-07-241-36/+37
| | | | | | | | Avoid using ETS table for SQL workers: rely on processes names instead
* | Improve formatting of exceptionsEvgeny Khramtsov2019-07-071-6/+6
| |
* | Make return type of sql_transaction() consistentEvgeny Khramtsov2019-07-041-2/+6
| |
* | Use correct stacktrace in logging macrosEvgeny Khramtsov2019-06-261-3/+6
| | | | | | | | | | | | | | By calling erlang:get_stacktrace() inside a lager function we obtain actually a stacktrace of the lager function, not the one we got during exception. This is not a problem for newest Erlang versions though.
* | Make logging messages more consistentEvgeny Khramtsov2019-06-241-13/+13
| |
* | Use new configuration validatorEvgeny Khramtsov2019-06-141-88/+47
| |
* | Report better errors on SQL terms decode failureEvgeny Khramtsov2019-05-191-3/+17
| |
* | Fix handling of list arguments on pgsqlPaweł Chmielowski2019-04-231-10/+18
| |
* | Fix transaction aborting and restarting in ejabberd_sqlAlexey Shchepin2019-03-071-0/+2
| |
* | Handle info log level when using MySQL (#2541)Badlop2019-03-041-0/+1
| |
* | Replace code using p1_time_compat wrapper with native functionsPaweł Chmielowski2019-02-271-3/+3
| | | | | | | | | | | | | | Since we now require R19, we shouldn't need that anymore. There are still couple places where p1_time_compat:unique_timestamp() is used as there is no direct equivalent.
* | Do not overwrite odbc config file (#2295)Christophe Romain2019-01-311-3/+9
| |
* | Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
| |
* | Add code for handling deprecations of get_stacktrace()Paweł Chmielowski2018-12-131-24/+25
| |
* | Add list types to sql_ptPaweł Chmielowski2018-12-051-6/+11
| |
* | Relax result matching to fix pgsql keepalive (#2632)Christophe Romain2018-11-211-1/+1
| |
* | Move certificates processing code to pkix applicationEvgeny Khramtsov2018-09-271-1/+1
| | | | | | | | | | | | | | | | ==== WARNING: MUST BE ADDED TO RELEASE NOTES ===== The commit introduces the following incompatibility: - Option 'ca_path' is deprecated and has no effect anymore: option 'ca_file' should be used instead if needed. ==================================================
* | Add odbc connection robustness (#2428)Christophe Romain2018-09-251-24/+59
| |
* | Switch more log message to warning levelEvgeny Khramtsov2018-09-191-5/+4
| | | | | | | | | | The commit is supposed to improve logging at loglevel 3, which is the recommended level for high loaded ejabberd servers