J. King
19ab9df063
Fix more bugs
3 years ago
J. King
458126416c
Fix PostgreSQL coverage annotations
4 years ago
J. King
2348786a92
Start on replacing Phake with Phony
4 years ago
J. King
f7b3a473a9
Clarify ordering syntax rationale
4 years ago
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
4 years ago
J. King
86897af0b3
Add ability to enable scraper
Also transfer any existing scraper booleans on database upgrade. It was
previously possible to enable scraping manually by editing the database,
and these settings will be honoured.
4 years ago
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
4 years ago
J. King
e16df90bae
Style fixes
4 years ago
J. King
576d7e16a8
Fix handling of bytea-typed nulls
4 years ago
J. King
2438f35f3d
Add icon cache to database
Feed updating has not yet been adapted to store
icon data (nor their URLs anymore)
4 years ago
J. King
b5f959aabf
Fix blob tests
4 years ago
J. King
41bcffd6fb
Correctly query PostgreSQL byte arrays
This required different workarouynd for the native and PDO interfaces
4 years ago
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
4 years ago
J. King
4db1b95cf4
Add numeric IDs and other Miniflux data to SQLite schema
4 years ago
J. King
3ac010d5b6
Fix tests in absence of database extensions
4 years ago
J. King
bc53a2d24a
Style fixes
5 years ago
J. King
b5f118e8cb
Cleanup
5 years ago
J. King
bbace7a0ac
Use void and nullable return types where practical
5 years ago
J. King
b6dd8ab20d
Improvements to and proper tests for query builder
5 years ago
J. King
17a2fa96f8
Upgrade to PHPUnit 8
5 years ago
J. King
b8b8a6aa70
Also adjust test for MySQL connection failure
5 years ago
J. King
cb1039326c
Fix PostgreSQL tests when using "trust" authentication
5 years ago
J. King
d0f780d4e6
Unit tests for IN() clause generator
5 years ago
J. King
29667464a1
Remove unnecessary namespace imports
5 years ago
J. King
bab4174a17
Move database driver helps out of test cases
5 years ago
J. King
b8b559b0f8
Correct spuriously failing tests
5 years ago
J. King
f7240301e4
Basic database maintenance
Closes #169
5 years ago
J. King
cb71a9efd7
Make database connections for testing configurable
5 years ago
J. King
21fdd66d37
Work around limit to SQL parameter placeholders for IN() clauses
Improves #150
LIKE-based matches also need to be similarly conservative
6 years ago
J. King
837f3c6dd6
Simplify SQL type handling
This is done in anticipation of dealing with SQL types in
places other than statements
6 years ago
J. King
2df7c25b66
Add ability to search note text
6 years ago
J. King
8ea1df920a
Unify SQL timeouts
- Exec and lock timeouts now apply to MySQL
- Lock timeout now applies to PostgreSQL
- SQLite now uses a generic lock timeout setting which applies to all
6 years ago
J. King
4670dfc849
Handle connection errors
6 years ago
J. King
e92bda5373
Various changes:
- Fix handling of binary data and long strings
- Simplify handling of socket connections
- Fix coverage
6 years ago
J. King
f3b0c791f8
Fix remaining tests
6 years ago
J. King
5d61ab0a57
Fixes for MySQL native interface
Three test failures remain, but these are minor and will be resolved
soon. Handling of binary data is also broken, but given that this works
fine with the PDO driver, there is presumably some correct method.
6 years ago
J. King
e501fbdc87
Remove the DatabaseInformation class in tests and use traits instead
6 years ago
J. King
81acba90dc
Use strict equality when comparing strings
6 years ago
J. King
206cca35a9
Test tweaks
6 years ago
J. King
f0d30c2eee
Make munging of queries a generic feature
6 years ago
J. King
24df564045
Mostly successful MySQL database function tests
Two failures remain, at least one requiring query munging.
6 years ago
J. King
4ef36643a4
Proof-of-concept PDO MySQL driver
- Configuration options were added
- Non-transactional locking was added to the savepoint handlers
- Tests were adjusted for MySQL's reserved words
6 years ago
J. King
29e7c1f154
Fix coverage
6 years ago
J. King
2bebdd44cf
Implementation of native PostgreSQL interface
Changes to the Database class were required to avoid outputting booleans
6 years ago
J. King
b52dadf345
Make existing PostgreSQL tests explicitly PDO tests
6 years ago
J. King
28f803dd28
Handle PostgreSQL connection errors
6 years ago
J. King
73729a6be8
Simplify database cleanup between tests
6 years ago
J. King
8dbf237626
Group PostgreSQL tests as slow
6 years ago
J. King
913cf71620
Fix incorrect annotations
6 years ago
J. King
089f666de6
Fix PDO insert ID errors in PHP 7.1
6 years ago