Re: [Sqlalchemy-tickets] [sqlalchemy] #2856: Oracle error with reflect on table with cyrillic colum
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-10-31 18:10:07
|
#2856: Oracle error with reflect on table with cyrillic column names in
-------------------------+-------------------------------------------------
Reporter: teddy | Owner: zzzeek
Type: defect | Status: new
Priority: medium | Milestone:
Component: | Severity: no triage selected yet
declarative | Keywords: oracle, cyrillic, declarative,
Resolution: | reflexion
Progress State: |
awaiting triage |
-------------------------+-------------------------------------------------
Comment (by teddy):
Hmmm, did some experiments.
I've put some changes to instrumentation.py:
{{{#!python
line 244 setattr(self.class_, key, inst)
}}}
to
{{{#!python
line 244 setattr(self.class_, key.encode('utf-8'), inst)
}}}
and to
{{{#!python
line 1 import trans
...
line 244 setattr(self.class_, key.encode('trans'), inst)
}}}
If we use transliteration, there is a problems such a
{{{SomeMappedClass.__table__.c.keys()}}} returns native field names.
If we use native names, there is a big question with manipulation in
interactive mode...
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2856#comment:3>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|