Commit graph

103 commits

Author SHA1 Message Date
Kim Alvefur
18b6b5c90b mod_storage_sql: Catch and report value deserialization errors 2018-02-24 11:50:08 +01:00
Kim Alvefur
689f3d3009 Merge 0.10->trunk 2017-12-22 01:02:05 +01:00
Kim Alvefur
cf3af7a85c mod_storage_sql: Index over contact and timestamp (happy now Ge0rg?) 2017-12-12 01:40:09 +01:00
Kim Alvefur
852564c14e mod_storage_sql: Remove ability to override name of key-value table (unreachable and would not work) 2017-12-11 22:45:03 +01:00
Kim Alvefur
cbfe174fa4 Merge 0.10->trunk 2017-11-21 23:16:16 +01:00
Kim Alvefur
a7693939d4 mod_storage_sql: Add indices that include the with and when columns of archives 2017-11-21 14:46:21 +01:00
Kim Alvefur
01d628a547 mod_storage_sql: Add support for truncating deletion 2017-11-09 16:50:36 +01:00
Kim Alvefur
5c1f8cfc4b Merge 0.10->trunk 2017-10-05 18:06:04 +02:00
Kim Alvefur
ce996cdb1c mod_storage_sql: Also clear the prosodyarchive table when an user is deleted (fixes #1009) 2017-10-05 17:44:47 +02:00
Kim Alvefur
50611461f2 mod_storage_sql: Remove return values from purge method 2017-10-05 17:22:42 +02:00
Matthew Wild
4812b7e07c mod_storage_sql: Fix logic error introduced by variable rename in aa9f198cb3c9 (thanks waqas) 2017-04-30 10:44:53 +01:00
Kim Alvefur
caf3175a5f mod_storage_sql: Limit encoding check to current database 2017-04-13 01:29:35 +02:00
Kim Alvefur
8aaba12933 mod_storage_sql: Break long lines 2017-04-12 23:16:23 +02:00
Kim Alvefur
d938b42d8f mod_storage_sql: Pass charset and collation names via variable binding 2017-04-12 21:53:21 +02:00
Kim Alvefur
a03638bd16 mod_storage_sql: Quote some field names 2017-04-12 21:51:17 +02:00
Kim Alvefur
c49d0d5b77 mod_storage_sql: Raise error if encoding check query fails 2017-04-12 17:26:13 +02:00
Kim Alvefur
91baabfede SQL: Use standard quotes for columns and other identifiers, rewrite to grave accents for MySQL only (fixes #885) 2017-04-10 23:13:39 +02:00
Kim Alvefur
32e5f29192 mod_storage_sql: Fix to use correct SQL query (thanks carlos) 2017-04-03 00:34:37 +02:00
Kim Alvefur
9b9d6a9ba9 Merge 0.10->trunk 2017-05-17 01:06:20 +02:00
Kim Alvefur
9548228ec8 Merge 0.10->trunk 2017-04-13 01:30:24 +02:00
Kim Alvefur
a22c6725be Merge 0.10->trunk 2017-04-12 20:59:18 +02:00
Kim Alvefur
8a9dd05b08 Merge 0.10->trunk 2017-04-10 23:16:13 +02:00
Kim Alvefur
8962d239ed Merge 0.10->trunk 2017-04-03 00:59:44 +02:00
Kim Alvefur
2364604bc1 Merge 0.10->trunk 2017-04-01 21:48:54 +02:00
Kim Alvefur
67572368f2 mod_storage_sql: Remove unused return values (should those actually be used?) 2017-04-01 19:47:02 +02:00
Kim Alvefur
dd86b147bf mod_storage_sql: Ignore name clash [luacheck] 2017-04-01 19:45:47 +02:00
Kim Alvefur
ee705afbef mod_storage_sql: Split long lines [luacheck] 2017-04-01 19:45:37 +02:00
Kim Alvefur
d5205416d5 mod_storage_sql: Ignore name clash [luacheck] 2017-04-01 19:45:20 +02:00
Kim Alvefur
29c30180ee mod_storage_sql: Pass SQL engine as an argument to upgrade and table creator functions 2017-04-01 19:39:20 +02:00
Kim Alvefur
61d955084f mod_storage_sql: Move SQL queries into multiline strings for readability [luacheck] 2017-04-01 19:26:27 +02:00
Kim Alvefur
fbd4f04b73 mod_storage_sql: Rename variables to avoid name clashes [luacheck] 2017-04-01 19:25:34 +02:00
Kim Alvefur
b33ad7f001 mod_storage_sql: Sensible defaults for 'when' and 'with' arguments 2017-04-01 19:04:54 +02:00
Kim Alvefur
1113bbdf22 mod_storage_sql: Remove compat for argument order change 2017-04-01 19:02:27 +02:00
Kim Alvefur
50992abb10 Merge 0.10->trunk 2017-02-20 01:46:54 +01:00
Kim Alvefur
10bc92f25d mod_storage_sql: Make archive:append() to return the id (or key) as first return value 2017-02-20 01:26:03 +01:00
Kim Alvefur
d020c4eab4 Merge 0.10->trunk 2017-01-24 19:27:17 +01:00
Kim Alvefur
1d99ff3da6 mod_storage_sql: Fix to use correct order for return values from transaction (thanks postblue) 2017-01-24 19:26:40 +01:00
Kim Alvefur
468d3db1a1 Merge 0.10->trunk 2017-01-23 19:34:14 +01:00
Kim Alvefur
2a9484a488 Merge 0.10->trunk 2016-12-02 11:13:05 +01:00
Kim Alvefur
738528509c mod_storage_sql: Normalize parameters for upgrade command 2016-12-01 10:02:57 +01:00
Kim Alvefur
d0df7de379 mod_storage_sql: List available commands if no commands given (currenly only one available) 2016-12-01 10:02:26 +01:00
Kim Alvefur
f1ce52f17d mod_storage_sql: Don't say 'Unknown command' if no command was given (fixes attempt to concatenate nil) 2016-12-01 10:02:01 +01:00
Kim Alvefur
0176e27050 mod_storage_sql: Include missing parameter table key 'port' 2016-12-01 03:22:42 +01:00
Kim Alvefur
011ee227bb mod_storage_sql: Create a new table to hold normalized database parameters (fixes #636) 2016-11-29 08:20:42 +01:00
Kim Alvefur
b89b681cd2 mod_storage_sql: Use is_stanza() from util.stanza 2016-11-28 07:30:39 +01:00
Kim Alvefur
ad82f3f080 mod_storage_sql: Return number of affected items from archive:delete 2016-11-22 18:13:21 +01:00
Emmanuel Gil Peyrot
c6048a7cb4 Update every link to the documentation to use HTTPS 2016-04-16 21:08:05 +01:00
Kim Alvefur
c42992594d mod_storage_sql: Make sure all serialization errors are propagated 2016-03-21 09:33:12 +01:00
Kim Alvefur
144597d16b mod_storage_sql: Allow loops over results to end on their own 2016-03-13 17:43:33 +01:00
Kim Alvefur
9df91659b9 mod_storage_sql: Add LIMIT clause to queries where only a single row is expected 2016-03-13 17:42:22 +01:00