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

Unicode Strings incorrect not allowed for insertion into BLOB SubType 1. [PYFB37] #56

Closed
firebird-automations opened this issue Jun 20, 2013 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: Dan Casper (g.d.d.c)

I have this domain defined:

CREATE DOMAIN txtparm AS BLOB SUB_TYPE 1 DEFAULT NULL;

And a table using it was raising this error:

Unicode strings are not acceptable input for a non-textual BLOB column.

From ! line 2851 in http://fbcore.py. The if statement requires an additional check that sqlvar.sqlsubtype != 1 before raising that error is reasonable. Is there a .git repository I can clone / pull from or likewise so I can submit changes? Or is notifying someone enough?

Commits: c678adf FirebirdSQL/fbt-repository@75818c8

@firebird-automations
Copy link
Author

Commented by: @pcisar

Well, actually, the situation is more complicated, as FDB is not intended to let unicode slip into any BLOB (except via streamed BLOB). For textual BLOBs, automatic conversion to connection charset (or locale.getpreferredencoding() if connection charset is not specified) is performed, for non-textual BLOBs you should get this error. So suggested change is not enough. Anyway, reported case is a bug. Fixed.

@firebird-automations
Copy link
Author

Modified by: @pcisar

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

resolution: Fixed [ 1 ]

Fix Version: 1.4 [ 10551 ]

@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