You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
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
The text was updated successfully, but these errors were encountered: