GithubHelp home page GithubHelp logo

Comments (13)

juliendidier avatar juliendidier commented on July 3, 2024

Same for schema:create
Database and tables are not configured with dbal charset.

I think it's a bug. Because data are inserted with the config charset. And this is not normal to have data in UTF-8 in Latin schema.

I really want a feedback about that from the Doctrine community, before investigate.

from doctrinebundle.

stof avatar stof commented on July 3, 2024

Which version of Doctrine are you using ? IIRC, DBAL now sets the charset when creating tables instead of relying on the default value of the server (not sure if it is in 2.2.1 or only in master)

from doctrinebundle.

juliendidier avatar juliendidier commented on July 3, 2024

I use the last version of dev/master

My database is created with default mysql charset

from doctrinebundle.

arnaugm avatar arnaugm commented on July 3, 2024

I have the same issue, database and tables created in Latin.
I'm using the deps of Symfony 2.0.15

from doctrinebundle.

arnaugm avatar arnaugm commented on July 3, 2024

I'm playing with Symfony 2.1.0-beta1 and I'm not sure witch version of doctrine uses, the composer.json file says "doctrine/orm": "2.2.*".
The problem is still there.

from doctrinebundle.

ivan1986 avatar ivan1986 commented on July 3, 2024

doctrine/common 2.3.x-dev bb0aebb
doctrine/dbal 2.3.x-dev 292d5ed
doctrine/doctrine-bundle dev-master 4fa47ca

The problem is still there.

from doctrinebundle.

nmeirik avatar nmeirik commented on July 3, 2024

Seems to be an issue still: https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L413 (no charset specified).

from doctrinebundle.

ivan1986 avatar ivan1986 commented on July 3, 2024

i use my solution for deb-based distrs
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=321505#57
this bug have 8 years :)

from doctrinebundle.

nmeirik avatar nmeirik commented on July 3, 2024

Hehe - great tip!

from doctrinebundle.

 avatar commented on July 3, 2024

not sure, but it is any way related to this issue also? #210

from doctrinebundle.

kimhemsoe avatar kimhemsoe commented on July 3, 2024

@nmeirik the part you link is for creating a table and charset is should be set there.
https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L472

For creating database you want to take a look at https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L373

@jrobeson No, they are not related. #210 is "just" normal distro / php / PDO fun.

from doctrinebundle.

deeky666 avatar deeky666 commented on July 3, 2024

@kimhemsoe I think this is completely a DBAL issue and should be closed here, no? Setting the character set for tables is already supported for some time now in MySQL, setting it for databases to be created it is not supported. Not sure if we even can / should support it as it is a rather MySQL specific issue and the platform API won't let us do it anyways without changing method signature and breaking BC here.

from doctrinebundle.

kimhemsoe avatar kimhemsoe commented on July 3, 2024

@deeky666 Maybe it can be done with a optional options array, do not know if that is something we should do though.
Closing, not a bundle issue until support is in dbal, Workarounds exists by changing server config and charset is set correctly on tables, which is only reason i can remember why you want charset to set on database (I may be wrong).

from doctrinebundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.