Shish
b151a029c1
make sure stdlib_ex is included before database things, fixes #1240
2024-09-04 15:13:57 +01:00
Shish
8b20fa3bc2
Add preg_replace_ex
...
having preg_replace return string|array|null is a pain, string|exception is much cleaner
2024-08-31 19:56:27 +01:00
Shish
8efa960e5d
Make some more things null-safe
...
(in preparation for bumping up the phpstan strictness to disallow null-unsafe code)
2024-08-31 19:19:24 +01:00
Shish
8f8c0d151a
Update dependency versions
2024-08-31 17:06:39 +01:00
Shish
a59b9f706c
[core] use || for SQL concatenation
...
MySQL supports this now?
2024-06-19 23:57:41 +01:00
Marcos Del Sol Vives
b3eb5e7b03
Fix order:random not working on SQlite
2024-02-16 20:14:34 +00:00
Shish
7ee4152942
[core] organise exceptions a bit
2024-02-11 16:03:23 +00:00
Shish
12335b680e
log query source uri even with niceurls
2024-02-09 15:10:29 +00:00
Shish
8b797a9a31
[tests] more strictness
2024-01-20 19:47:27 +00:00
Shish
b60c3fe362
[core] a load more type hints, and fix bugs revealed by type hints
2024-01-20 14:11:00 +00:00
Shish
d75b410075
[core] fix more warnings
2024-01-15 21:01:22 +00:00
Shish
589ff69eea
[types] typetypetypetypetype
2024-01-15 15:08:22 +00:00
Shish
432be420fd
[core] trace savepoints
2024-01-09 22:47:22 +00:00
Shish
7b9201cb42
[core] Database::with_savepoint()
2024-01-09 21:59:24 +00:00
Shish
48b3de3c6e
[core] fix error in error handling
2024-01-04 23:10:31 +00:00
Shish
fd1bb21f9d
bumps
2023-11-11 22:05:28 +00:00
Shish
340b9daa71
connect to db before setting db timeout
2023-06-30 10:49:25 +01:00
Shish
cc809bc005
trace database writes (how did it take so long to do this? T_T)
2023-06-25 20:47:55 +00:00
Shish
33f32f7b22
Revert "INSERT ... RETURNING is well-supported now" - mysql doesn't...
...
This reverts commit 633d5c5348
.
2023-06-25 20:31:11 +00:00
Shish
633d5c5348
INSERT ... RETURNING is well-supported now
2023-06-25 20:25:09 +00:00
Shish
077a5e7727
fix php8.2 warnings
2023-02-19 11:24:33 +00:00
Shish
ede2dc7cfe
raw_db should always return something
2023-02-14 01:14:49 +00:00
Shish
09723bbcb9
less whitespace in logs
2023-02-05 01:26:07 +00:00
Shish
215b30dfca
get_debug_info_arr
2023-01-28 19:03:15 +00:00
Shish
c81911893f
tests
2023-01-11 14:04:35 +00:00
Shish
2a18322dd5
god damn it php
2023-01-11 13:27:57 +00:00
Shish
9587bedae0
argh
2023-01-11 11:18:16 +00:00
Shish
5a64e8729b
nits
2023-01-11 11:15:26 +00:00
Shish
f0c8affc07
fmt
2023-01-11 00:51:57 +00:00
Shish
bce2d55744
Namespaces are one honking great idea—let's do more of those!
2023-01-10 22:44:09 +00:00
Shish
a04bc2e7e4
php8.1 gogogo
2022-10-28 01:45:35 +01:00
Shish
3d9e32e919
new php-cs-fixer
2021-12-14 18:32:47 +00:00
Shish
3bb1566df2
Allow db->set_timeout(null) to disable DB timeouts, see #874
2021-09-22 15:42:41 +01:00
Shish
77f7121e26
drop php7.3 support, make use of 7.4 features
2021-03-14 23:43:50 +00:00
Shish
a4ff796b35
remove dead code
2020-10-27 21:51:34 +00:00
Shish
6c223d16bd
use inTransaction() instead of trying to maintain our own state
2020-10-27 21:51:15 +00:00
Shish
ea29e29a06
mostly postgres doesn't need migrating
2020-10-26 23:38:52 +00:00
Shish
cc06df171a
Argh, that doesn't work for OTHER versions of sqlite...
...
This reverts commit 55e3cb5d63
.
2020-10-26 22:37:25 +00:00
Shish
55e3cb5d63
compatibility with out-of-date sqlite: use '(1=0)' instead of 'false'
2020-10-26 22:33:11 +00:00
Shish
631cf29424
argh
2020-10-26 17:29:05 +00:00
Shish
08a4a6d41f
pm also used char for postgres
2020-10-26 17:28:21 +00:00
Shish
4d6dc7e98b
standardise_boolean function to ease conversion
2020-10-26 17:03:42 +00:00
Matthew Barbour
0fc0b8e723
Added get_pairs_iterable to database object
2020-10-08 17:24:09 -05:00
Shish
e696357c06
database notification API
2020-10-03 12:54:38 +00:00
Shish
2197b15012
Add core/sanitize_php.php
...
A small number of PHP-sanity things (eg don't silently ignore errors) to
be included right at the very start of index.php and tests/bootstrap.php
2020-06-24 14:54:46 +01:00
Matthew Barbour
9b9f1d0341
Cleaned up some warnings in bulk import/export extension
...
Added transactions to bulk import
Renamed beginTransaction to begin_transaction for naming consistency
Updated cron uploader to handle bulk import transactions
2020-06-23 15:07:00 +01:00
Shish
511a82f2ba
include database version in sys info
2020-03-26 16:57:08 +00:00
Matthew Barbour
6947b726f0
Added exists function to database object
2020-03-02 15:42:28 +00:00
Shish
e91acbb2c2
remove unused scoreql parameters
2020-02-01 22:51:30 +00:00
Shish
3f689b68bc
MockDatabase didn't get used
2020-02-01 21:32:38 +00:00