Copilot
ae7339afd4
Use native booleans for prepared SQL params; stop binding db_get_boolean() values ( #1019 )
...
Prepared statements were binding DB-specific boolean literals (`'t'/'f'`) produced by `db_get_boolean()`, which breaks PostgreSQL parameter typing in some paths (notably mailbox creation via handler flows).
This change standardizes bound boolean parameters to native PHP `true`/`false` (which are then cast to 0/1 which seems to work fine within PDO/PostgreSQL).
fixes https://github.com/postfixadmin/postfixadmin/issues/1017
2026-04-23 19:28:01 +01:00
David Goodwin
284e1f7eb2
fix test after language change
2021-07-08 19:44:11 +01:00
David Goodwin
2edabc3e03
phpcs insists on some brace changes
2021-04-13 21:19:16 +01:00
David Goodwin
823f27b29d
phpcs wants to change ...
2021-03-22 09:28:28 +00:00
David Goodwin
7107e17c4c
composer format
2020-09-25 21:33:26 +01:00
David Goodwin
3c7da4f3b8
Refactor some methods
...
PFAHandler::store() -> PFAHandler::save();
PFAHandler::storemore() -> PFAHandler::postSave();
PFAHandler::beforestore() -> PFAHandler::preSave();
2020-09-25 21:29:45 +01:00
David Goodwin
12f68a6e3a
composer format time
2020-08-13 15:27:47 +01:00
David Goodwin
5bd5bdc25b
merge https://github.com/postfixadmin/postfixadmin/pull/375 add unit test
2020-08-13 15:00:22 +01:00
David Goodwin
ef1fb36133
improve unit tests for PostgreSQL
2020-06-23 21:43:19 +01:00
David Goodwin
3cd62f9f4f
update to phpunit v8, try changing coveralls library, update github action
2020-04-14 21:03:10 +01:00
David Goodwin
01b4d6c587
cleanup db after running
2020-03-02 09:55:35 +00:00
David Goodwin
6a7abbe663
fix formatting
2020-03-02 09:41:31 +00:00
David Goodwin
28a3f5f157
better testing
2020-03-02 09:37:17 +00:00
David Goodwin
cd8cf289b4
more empty tests
2019-09-17 21:40:41 +01:00