tickets: 6517
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6517 | 2008-01-31 08:42:34 | 2020-10-17 10:48:14 | 2022-03-06 03:37:20.749251 | Ready for checkin | closed | Database layer (models, ORM) | Bug | Normal | dev | fixed | MySQL: manage.py dbshell does not get charset from DATABASES setting | I noticed that manage.py dbshell doesn't respect the database_options.[[BR]] I ran into an issue with an application we are creating that needs to support mysql and postgre at least, we execute some sql scripts that get piped to manage.py dbshell (to avoid hardcoding psql -U xxx or mysql -u xxx and creating 2 scripts every time). When running an utf8 database with utf8 as our charset in database_options, we ran into some weird encoding issues. The solution for us was to learn mysql/client.py to respect the encoding settings in settings.py Are you opposed to something like this? Attaching small patch that fixes our problem. Let me know if it needs extending to support other backends or database_options. | manav014 | tvrg | 1 | 1 | 0 | 0 | 0 | 0 |