J. King
9d391469ad
Merge branch 'master' into redup
2023-01-28 15:08:54 -05:00
J. King
0d6f8d2921
Avoid most deprecation warnings
...
The Feed class sets dynamic properties on Picofeed classes; this will
need to be completely rewritten. Version 1.2 of the Laminas XML class
also uses a deprecated function, but upgrading it to 1.3 will require
PHP 7.3.
2023-01-27 15:33:34 -05:00
J. King
a77b47cd59
Merge branch 'master' into dbtest
2022-09-15 10:12:04 -04:00
J. King
0f2da754c5
Fix remaining test problems
2022-06-04 23:02:24 -04:00
J. King
c40f39e34e
Work around MySQL absurdities
2022-06-04 22:07:21 -04:00
J. King
2822864a85
Fix most test failures
...
MySQL is still being stubborn. It may be a type-conversion issue.
2022-06-04 20:16:22 -04:00
J. King
9ac615e4a4
Apply more PSR-12 style rules
2022-05-31 23:55:04 -04:00
J. King
d1da6fbe5e
Use cases rather than casting bools to int in SQL
2022-05-30 17:29:34 -04:00
J. King
e65069885b
Clean up obsolete FIXMEs
2022-04-25 18:30:13 -04:00
J. King
e6505a5fda
Work around possible MySQL bug
2022-04-25 09:56:13 -04:00
J. King
2489743d0f
Further simplifications
2022-04-23 13:21:52 -04:00
J. King
b5579d6e43
Support PHP 8.1
2022-01-11 17:54:02 -05:00
J. King
fc2abc1203
Use D modifier for all patterns with $ anchors
2021-06-24 11:58:50 -04:00
J. King
19ab9df063
Fix more bugs
2021-05-18 18:42:42 -04:00
J. King
6b7257a6c4
Work around more MySQL stupidity
2021-03-02 11:04:42 -05:00
J. King
5cfa01f4d5
Work around MySQL stupidity
2021-03-02 11:04:21 -05:00
J. King
f7b3a473a9
Clarify ordering syntax rationale
2021-02-03 14:20:34 -05:00
J. King
ed27e0aaaa
Sort nulls consistently
...
PostgreSQL normally sorts nulls after everything else in ascending order
and vice versa; we reverse this, to match SQLIte and MySQL
2021-02-02 10:00:08 -05:00
J. King
461e256052
Work around MySQL syntax weirdness
...
Also improve test for token translation to actually test that the
translated tokens are accepted by the database system
2021-01-07 10:12:38 -05:00
J. King
ce68566fcb
Hopefully fix MySQL
2020-12-06 20:27:20 -05:00
J. King
a431243421
Fixes for MySQL and PostgreSQL
2020-12-06 13:17:19 -05:00
J. King
e16df90bae
Style fixes
2020-11-16 10:26:14 -05:00
J. King
576d7e16a8
Fix handling of bytea-typed nulls
2020-11-09 16:49:42 -05:00
J. King
41bcffd6fb
Correctly query PostgreSQL byte arrays
...
This required different workarouynd for the native and PDO interfaces
2020-11-03 17:52:20 -05:00
J. King
c21ae3eca9
Correctly send binary data to PostgreSQL
...
This finally brings PostgreSQL to parity with SQLite and MySQL.
Two tests casting binary data to text were removed since behaviour here
should in fact be undefined
Accountinf for any encoding when retrieving data will be addressed by
a later commit
2020-11-02 15:21:04 -05:00
J. King
e60f7ea03f
Add class constant visibility
2020-03-01 18:32:01 -05:00
J. King
bc53a2d24a
Style fixes
2020-03-01 15:16:50 -05:00
J. King
bbace7a0ac
Use void and nullable return types where practical
2020-01-20 13:34:03 -05:00
J. King
15de8c2320
Fix PostgreSQL connection error message
2019-12-02 17:14:03 -05:00
J. King
c59cdfef76
Whitespace fixes
2019-10-25 15:16:35 -04:00
J. King
7ac4fb4715
Clarify PDO workaround for SQLite
2019-10-18 16:09:01 -04:00
J. King
c706a76057
Simplify array flattening
2019-10-18 13:10:03 -04:00
J. King
fb6e2babb9
Change some conditions to asserts
2019-09-12 08:32:40 -04:00
J. King
53aa7a4d0d
Style fixes
2019-09-05 10:21:36 -04:00
J. King
29667464a1
Remove unnecessary namespace imports
2019-09-05 10:03:32 -04:00
J. King
d6220c1bbb
Merge branch 'master' into manual
2019-07-26 11:27:14 -04:00
J. King
f7240301e4
Basic database maintenance
...
Closes #169
2019-07-26 09:37:51 -04:00
J. King
6ef13d0880
Style fixes
2019-05-01 22:52:20 -04:00
J. King
38bdde1167
Add access tokens to the db, with relevant code
...
Tokens are similar to sessions in that they stand in for users, but the
protocol handlers will manage them; Fever login hashes are the
originating use case for them. These must never expire, for example,
and we need to specify their values.
This commit also performs a bit of database clean-up
2019-03-09 16:23:56 -05:00
J. King
ff0c9a3a55
Add functionality for interacting with subscription tags
2019-03-06 22:15:41 -05:00
J. King
ed22090e49
Work around various SQLite-related problems
...
- WAL mode was not getting set properly
- Queries using the PDO driver could fail because PDO sucks
2019-03-04 11:05:46 -05:00
J. King
21fdd66d37
Work around limit to SQL parameter placeholders for IN() clauses
...
Improves #150
LIKE-based matches also need to be similarly conservative
2019-03-01 22:36:25 -05:00
J. King
6857e8ec1b
Merge branch 'search'
2019-03-01 12:26:08 -05:00
J. King
837f3c6dd6
Simplify SQL type handling
...
This is done in anticipation of dealing with SQL types in
places other than statements
2019-03-01 12:17:33 -05:00
J. King
570a9b171c
Revert fulltext detection in driver
2019-02-22 18:49:57 -05:00
J. King
ad8057a40b
Driver changes to support basic text searching
2019-02-22 11:13:13 -05:00
J. King
908e1fa310
API documentation for database driver interface
2019-02-21 15:43:19 -05:00
J. King
b55d0b374f
API documentation for database driver interface
2019-02-21 15:10:32 -05:00
J. King
f5c5d49d97
Document SQL timeout changes
2019-01-24 11:40:25 -05:00
J. King
500851f161
Style fixes
2019-01-23 16:34:54 -05:00