Subject Re: [Firebird-Architect] Default collation
Author Adriano dos Santos Fernandes
Helen Borrie wrote:
> At 05:10 PM 13/04/2008, Dmitry Yemanov wrote:
>
>> Helen Borrie wrote:
>>
>>> Not to mention that COLLATE (not COLLATION or any other invention) is the keyword that *already* exists in Firebird's SQL grammar for the purpose of specifying a <collation order> *and* COLLATE is the SQL-92 keyword, to boot.
>>>
>> Both COLLATE and COLLATION are keywords in SQL2003. And the latter one
>> exists in our grammar since, I believe, v2.1.
>>
>> The SQL spec declares CREATE/DROP COLLATION and <value> COLLATE <order>,
>> and so far we comply. As you can see, it confirms my "verb vs noun"
>> explanation :-) But both extensions proposed by Adriano are non-standard
>> and we have to choose a proper syntax.
>>
>> Looking at the proposed SET DEFAULT COLLATE <name>, I can see some
>> similarity in the standard which mentions SET COLLATION <name> for a
>> session. Again, COLLATION is used for a noun.
>>
>> So I still think that COLLATION is a proper choice of a keyword for the
>> features we discuss.
>>
>
> I disagree, seriously.
>
> COLLATION is fair enough for naming the object in CREATE COLLATION, if you must. It is at least consistent with CREATE TABLE, CREATE INDEX, yada yada yada, and anyway, we are stuck with it.
>
> But the proposed syntax for the clause is really dumb on several counts:
>
> e.g. CREATE DATABASE ....
> CHARACTER SET BLAH SET DEFAULT COLLATION
> is really dumb. What do the keywords SET (usage as a verb additional to usage as part of a noun phrase just preceding it) and DEFAULT achieve?
I do not proposed this syntax, read again. :-) There is no SET before
DEFAULT COLLATE/COLLATION.

There is SET in ALTER CHARACTER SET. This looks similar to others commands.

--
Adriano dos Santos Fernandes
http://www.firebirdsql.org