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
e92bda5373
Various changes:
- Fix handling of binary data and long strings
- Simplify handling of socket connections
- Fix coverage
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
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
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
J. King
cf896121b2
Style fixes
6 years ago
J. King
f2245861e3
Restore complete Database coverage
Also suppress PostgreSQL database function tests from normal coverage,
and add a "coverage:full" task to run them if needed.
6 years ago
J. King
258be1d54e
Fix most PostgreSQL test failures
Reasons for failures included an unhandled error code, erroneous sorting
assumptions, and a broken computation of the next insert ID in tests
Five failures remain.
6 years ago
J. King
527ecee393
Code coverage fixes
6 years ago
J. King
4a1c23ba45
Munge PostgreSQL queries instead of adding explicit casts
PDO does not adequately inform PostgreSQL of a parameter's type, so type
casts are required. Rather than adding these to each query manually, the
queries are instead processed to add type hints automatically.
Unfortunately the queries are processed rather naively; question-mark
characters in string constants, identifiers, regex patterns, or geometry
operators will break things spectacularly.
6 years ago
J. King
e68fcc0afa
Manipulate only those sequences in the current PostgreSQL schema
6 years ago
J. King
4a2efd9987
Correct the state of PostgreSQL serial sequence during tests
6 years ago
J. King
dd4f22e04e
Avoid use of reserved SQL word "user"
6 years ago
J. King
8dfedd30ef
Test PostgreSQL schema upgrade
This was in fact buggy due to the schema version check causing an error
6 years ago
J. King
1414f8979c
Fix savepoint handling and locking in PostgreSQL driver
6 years ago
J. King
8a49202036
Use common cleanup code for all database-related tests
6 years ago
J. King
8c20411359
Align statement tests with other database driver tests
6 years ago
J. King
f22e53fdc9
Align result tests with driver tests
6 years ago
J. King
736a8c9d0c
Improved timeout handling for both SQlite and PostgreSQL
6 years ago
J. King
edfae438fa
Refine pg connection strings
6 years ago