|
4 | 4 | ID: trigger.database.disconnect |
5 | 5 | TITLE: Trigger on database disconnect: check that exception that raised when trigger fires is written to firebird.log |
6 | 6 | DESCRIPTION: |
7 | | - Discussed with Alex, 16.12.2020 functionality that was not specified in the documentation: |
8 | | - exception that raises in a trigger on DISCONNECT reflects in the firebird.log. |
| 7 | + Test covers https://github.com/FirebirdSQL/firebird/issues/4282 |
| 8 | + Discussed with Alex, 16.12.2020 functionality that was not specified in the documentation: |
| 9 | + exception that raises in a trigger on DISCONNECT reflects in the firebird.log. |
9 | 10 |
|
10 | | - Test creates trigger on disconnect and put in its body statement which always will fail: 1/0. |
11 | | - Then we get content of firebird.log before disconnect and after. |
12 | | - Finally we compare these logs and search in the difference lines about error message. |
| 11 | + Test creates trigger on disconnect and put in its body statement which always will fail: 1/0. |
| 12 | + Then we get content of firebird.log before disconnect and after. |
| 13 | + Finally we compare these logs and search in the difference lines about error message. |
13 | 14 | FBTEST: functional.trigger.database.disconnect_01 |
14 | 15 | NOTES: |
15 | | -[26.05.2022] pzotov |
16 | | - Re-implemented for work in firebird-qa suite. |
17 | | - ACHTUNG: firebird.log may contain NON-ASCII characters if localized Windows is used! |
18 | | - Because of this, we have to add 'encoding=locale.getpreferredencoding()' to act.connect-server() call. |
19 | | - Checked on: 4.0.1.2692, 5.0.0.497 |
| 16 | + [26.05.2022] pzotov |
| 17 | + Re-implemented for work in firebird-qa suite. |
| 18 | + ACHTUNG: firebird.log may contain NON-ASCII characters if localized Windows is used! |
| 19 | + Because of this, we have to add 'encoding=locale.getpreferredencoding()' to act.connect-server() call. |
| 20 | + Checked on: 4.0.1.2692, 5.0.0.497 |
20 | 21 | """ |
21 | 22 |
|
22 | 23 | import pytest |
|
0 commit comments