Issue Details (XML | Word | Printable)

Key: PYFB-42
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Pavel Cisar
Reporter: Werner F Bruhin
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird driver for Python

Python 3.4 and FDB - backup throws an exception

Created: 08/Sep/14 07:55 AM   Updated: 13/Nov/14 03:16 PM
Component/s: None
Affects Version/s: 1.4.1
Fix Version/s: 1.4.2

File Attachments: 1. Text File fdbAndPy3.patch (3 kB)

Environment: Windows 8.1 with Python 3.4


 Description  « Hide
When trying to do a backup and exception is thrown, details please see the thread "Python 3.4 and FDB - backup" on firebird-python@yahoogroups.com

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Werner F Bruhin added a comment - 08/Sep/14 08:01 AM
Suggested patch to correct the issue.

Change is basically to keep the 'source_database' as a string and only convert it to a byte stream in the method services.add_database_name.

There are some additional calls to ibase.b(database) which should probably also be changed, the ones I noted are in:

get_limbo_transaction_ids
_resolve_limbo_transaction
commit_limbo_transaction
rollback_limbo_transaction
get_statistics
nbackup
set_default_page_buffers
set_sweep_interval
set_reserve_page_space
activate_shadow
shutdown
bring_online
sweep
repair