cms-dev / cms-dev/cms

SQLAlchemy: Unicode issue

Open
#777 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1k
Forks
412
Avg merge
6d 10h
Merged PRs (30d)
3

Description

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),))

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report identifies cmsImportDataset and SQLAlchemy's sqltypes.py warning; start by reproducing the warning there and tracing the values passed into the database operation. Check whether the behavior occurs beyond this importer, then verify that the affected paths no longer emit the reported Unicode warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sqlalchemy
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.