Commit graph

86 commits

Author SHA1 Message Date
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
Shish
f0f3cc7aa0 merge layout stuff into Page class 2020-02-01 18:11:11 +00:00
Shish
6d3ca01424 format 2020-01-29 00:49:26 +00:00
Shish
ac1076b3f3 don't use string concatenation for sql 2020-01-28 00:49:51 +00:00
Shish
9ac8246fa2 fixes 2020-01-27 22:22:07 +00:00
Shish
7e43e2e304 split www stuff to index.php and test things to tests/bootstrap.php 2020-01-27 19:28:58 +00:00
Shish
903679dc53 more stuff into regular functions 2020-01-27 18:24:11 +00:00
Shish
9eb5acf2dc use strict types 2020-01-26 16:27:56 +00:00
Shish
cb29d07ecc get rid of exists(), because rowCount doesn't work consistently 2019-12-10 01:17:14 +00:00
Shish
6b2304af93 format 2019-11-27 12:13:04 +00:00
Shish
861def1aa3 be explicit about using FFS-PHP's PDO not vanilla PDO 2019-11-26 10:26:38 +00:00