J. King
bab4174a17
Move database driver helps out of test cases
2019-08-25 13:19:11 -04:00
J. King
e92bda5373
Various changes:
...
- Fix handling of binary data and long strings
- Simplify handling of socket connections
- Fix coverage
2019-01-15 08:58:11 -05:00
J. King
e501fbdc87
Remove the DatabaseInformation class in tests and use traits instead
2019-01-12 12:43:06 -05:00
J. King
81acba90dc
Use strict equality when comparing strings
2019-01-11 10:38:06 -05:00
J. King
29e7c1f154
Fix coverage
2018-12-13 19:56:07 -05:00
J. King
2bebdd44cf
Implementation of native PostgreSQL interface
...
Changes to the Database class were required to avoid outputting booleans
2018-12-13 19:47:51 -05:00
J. King
b52dadf345
Make existing PostgreSQL tests explicitly PDO tests
2018-12-12 12:42:40 -05:00
J. King
28f803dd28
Handle PostgreSQL connection errors
2018-12-12 11:15:07 -05:00
J. King
8dbf237626
Group PostgreSQL tests as slow
2018-12-10 12:39:09 -05:00
J. King
913cf71620
Fix incorrect annotations
2018-12-07 20:36:20 -05:00
J. King
089f666de6
Fix PDO insert ID errors in PHP 7.1
2018-12-06 17:46:00 -05:00
J. King
cf896121b2
Style fixes
2018-12-05 17:28:11 -05:00
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.
2018-12-05 17:07:47 -05:00
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.
2018-12-05 09:05:43 -05:00
J. King
527ecee393
Code coverage fixes
2018-11-29 13:56:15 -05:00
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.
2018-11-29 13:45:37 -05:00
J. King
e68fcc0afa
Manipulate only those sequences in the current PostgreSQL schema
2018-11-28 17:16:03 -05:00
J. King
4a2efd9987
Correct the state of PostgreSQL serial sequence during tests
2018-11-28 16:24:12 -05:00
J. King
dd4f22e04e
Avoid use of reserved SQL word "user"
2018-11-28 14:21:36 -05:00
J. King
8dfedd30ef
Test PostgreSQL schema upgrade
...
This was in fact buggy due to the schema version check causing an error
2018-11-28 10:46:23 -05:00
J. King
1414f8979c
Fix savepoint handling and locking in PostgreSQL driver
2018-11-27 17:16:00 -05:00
J. King
8a49202036
Use common cleanup code for all database-related tests
2018-11-27 14:26:33 -05:00
J. King
8c20411359
Align statement tests with other database driver tests
2018-11-22 23:18:20 -05:00
J. King
f22e53fdc9
Align result tests with driver tests
2018-11-22 19:55:54 -05:00
J. King
736a8c9d0c
Improved timeout handling for both SQlite and PostgreSQL
2018-11-22 13:30:13 -05:00
J. King
edfae438fa
Refine pg connection strings
2018-11-16 21:20:54 -05:00