Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isc_info* types which are _DATABASE_INFO_CODES_WITH_COUNT_RESULTS raises TypeError: 'float' object cannot be interpreted as an integer [PYFB52] #69

Closed
firebird-automations opened this issue Jun 26, 2015 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: Cagatay Tengiz (ctengiz)

in http://fbcore.py line 1257:

pairCount = len(buf) / pairSize

in http://fbcore.py line 1260

for i in range(pairCount):

but pairCount is not integer.

I think this is because of : http://stackoverflow.com/questions/19507808/python3-integer-division

So converting pairCount to integer implicitly solves problem..

Commits: 40a5d41 FirebirdSQL/fbt-repository@823398c

@firebird-automations
Copy link
Author

Modified by: Cagatay Tengiz (ctengiz)

summary: is_info* types which are _DATABASE_INFO_CODES_WITH_COUNT_RESULTS raises TypeError: 'float' object cannot be interpreted as an integer => isc_info* types which are _DATABASE_INFO_CODES_WITH_COUNT_RESULTS raises TypeError: 'float' object cannot be interpreted as an integer

@firebird-automations
Copy link
Author

Modified by: @pcisar

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 1.4.9 [ 10702 ]

@firebird-automations
Copy link
Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants