On Jun 17, 2013, at 9:44 AM, graf <a.zhabotins...@gmail.com> wrote:

> I use sqlautocode to get declarative tables of the Firebird and now, when I 
> try to insert new row with unicode value for the field to the database I got 
> an error
> 
> ValueError: Value of parameter (30) is too long, expected 20, found 22'
> which is Column('Myfield', VARCHAR(length=20)),
> 
> The db codepage is "WIN1251"
> 
> engine = 
> create_engine('firebird+fdb://%(user)s:%(password)s@%(host)s:%(port)s/%(path)s'
>  % firebird_params)
> 
> It works for kinterbasdb, is that issue with fdb?


this would be a difference in how they handle unicode.   I've run tests for fdb 
here against unicode values and haven't observed that issue.

its possible fdb is doing the right thing here.   You should carefully look at 
how non-ASCII characters are being placed in that column both with kinterbasdb 
and with fdb.


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to