|
From: Dimitry S. <sd...@ib...> - 2012-07-06 08:21:06
|
06.07.2012 9:54, Mark Rotteveel wrote: >> > Shouldn't it be coupled with prohibiting declaration of charset for >> > single fields? >> >Currently nothing prevent (me) from creating database with default > charset >> >NONE and set >> >charset for every character field in every table. > I am not sure I see why you would need to prohibit setting the > characterset of a specific field when requiring the default characterset to > be set. Could you explain the reasoning on that? I have a script which creates my tables in my own just created database or any existing user-choosen database. Because I can't predict default character set of such user database, all fields in this script are created with explicit character set NONE. Proposed disabling of charset NONE will break this schema. >> > Yep: how to find out server version before creating database? > Could you be more explicit about the problem you are expecting? The question is: what character set to use in creation script? An attempt to create database with charset UTF-8 fail on servers before FB 2.1. If attempt to create database with charset NONE will fail on servers after FB 3.0 - how to choose character set for CREATE DATABASE statement? -- WBR, SD. |