FirebirdSQL / python3-lib

Optinal extension package for Firebird Python 3 driver
MIT License
2 stars 2 forks source link

ValueError: not enough values to unpack (expected 3, got 1) #2

Open DmEye opened 1 year ago

DmEye commented 1 year ago

I have a fbtrace_text file and I want to parse it by trace.py. But the error "ValueError" occurs when I parse my file. I changed some code in trace.py to see what problem is. So, the function "_parse_transaction_info" tries to parse the line "-------------------------------------------------------------------------------". I looked for the reason of it and found the next content of my trace file:

Statement 482:
-------------------------------------------------------------------------------
SELECT MON$DATABASE_NAME FROM MON$DATABASE

2023-02-06T12:01:58.9220 (12598:0x7f6f1d531bc0) PREPARE_STATEMENT
    employee (ATT_76, SYSDBA:NONE, NONE, TCPv4:127.0.0.1/54122)
    /opt/firebird/bin/isql:12834
-------------------------------------------------------------------------------

In this part of trace file there is not any information about transaction number, options and so on but trace.py tries to parse anyway.