Bug #58568 CMake does not prevent incompatible DEFAULT_CHARSET/DEFAULT_COLLATION settings
Submitted: 29 Nov 2010 20:36 Modified: 30 Nov 2010 0:04
Reporter: Paul DuBois Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.5+ OS:Any
Assigned to: CPU Architecture:Any

[29 Nov 2010 20:36] Paul DuBois
Description:
http://dev.mysql.com/doc/refman/5.1/en/charset-server.html says:

"Both mysqld and configure verify that the character set/collation combination is valid. If not, each program displays an error message and terminates."

And configure does indeed do that:

./configure --with-charset=latin1 --with-collation=utf8_bin
...

checking "character sets"... configure: error: 
      Collation utf8_bin is not valid for character set latin1.

CMake, however, allows incompatible settings:

cmake . -DDEFAULT_CHARSET=latin1 -DDEFAULT_COLLATION=utf8_bin

(no error is produced)

How to repeat:
See above.
[30 Nov 2010 0:04] Sveta Smirnova
Thank you for the report.

Verified as described. To get error with configure one should export HAVE_CMAKE=no
[30 Nov 2010 0:47] Paul DuBois
I got the error with configure by using the mysql-5.1 tree.