cms icon indicating copy to clipboard operation
cms copied to clipboard

SQLAlchemy: Unicode issue

Open lucach opened this issue 7 years ago • 2 comments

New versions of SA seems to be more picky with Unicode. I noticed this problem with cmsImportDataset, but it seems to be widespread.

/root/.local/lib/python2.7/site-packages/sqlalchemy/sql/sqltypes.py:185: SAWarning: Unicode type received non-unicode bind param value 'foo'. (this warning may be suppressed after 10 occurrences)
  (util.ellipses_string(value),))

lucach avatar May 31 '17 07:05 lucach

What SA version are you using?

Somewhat related to this there are also some TODOs in the _TYPE_MAP of https://github.com/cms-dev/cms/blob/master/cms/db/base.py.

lw avatar Jun 01 '17 03:06 lw

1.0.12 (from pip install -r requirements.txt)

lucach avatar Jun 01 '17 07:06 lucach