|
39 | 39 | #define MYSQL_CDK_PROTOCOL_MYSQLX_COLLATIONS_H
|
40 | 40 |
|
41 | 41 | /*
|
42 |
| - Each line X(CS, ID, COLL, CASE) in the expansion of |
| 42 | + Each line X(CS, ID, COLL, SENSITIVITY) in the expansion of |
43 | 43 | a COLLATION_XXX() macro declares collation with name COLL for character set
|
44 |
| - CS. ID is the MySQL id number for the collation. CASE is one of ci, cs or bin |
45 |
| - and indicates whether it is case insensitive, sensitive or binary collation, |
46 |
| - respectively. |
| 44 | + CS. ID is the MySQL id number for the collation. SENSITIVITY is either 'bin' |
| 45 | + for binary collations or a combination of sensitivity flags such as 'ai_ci', |
| 46 | + using the same conventions as the ones used in MySQL collation names. |
| 47 | +
|
| 48 | + Note: CS, COLL and SENSITIVITY are used to reconstruct the full MySQL name of |
| 49 | + the collation and should follow the same naming conventions (with few |
| 50 | + exceptions that we handle separately) |
47 | 51 | */
|
48 | 52 |
|
| 53 | + |
49 | 54 | #define COLLATIONS_big5(X) \
|
50 | 55 | X(big5,1,chinese,ci) \
|
51 | 56 | X(big5,84,bin,bin) \
|
|
228 | 233 | X(latin7,79,bin,bin) \
|
229 | 234 |
|
230 | 235 | #define COLLATIONS_utf8mb4(X) \
|
231 |
| - X(utf8mb4,255,uca0900_ai,ci) \ |
232 |
| - X(utf8mb4,278,uca0900_as,cs) \ |
233 |
| - X(utf8mb4,46,utf8mb4,bin) \ |
| 236 | + X(utf8mb4,255,uca0900,ai_ci) \ |
| 237 | + X(utf8mb4,278,uca0900,as_cs) \ |
| 238 | + X(utf8mb4,46,bin,bin) \ |
234 | 239 | X(utf8mb4,245,croatian,ci) \
|
235 |
| - X(utf8mb4,266,cs_0900_ai,ci) \ |
236 |
| - X(utf8mb4,289,cs_0900_as,cs) \ |
| 240 | + X(utf8mb4,266,cs_0900,ai_ci) \ |
| 241 | + X(utf8mb4,289,cs_0900,as_cs) \ |
237 | 242 | X(utf8mb4,234,czech,ci) \
|
238 | 243 | X(utf8mb4,235,danish,ci) \
|
239 |
| - X(utf8mb4,267,da_0900_ai,ci) \ |
240 |
| - X(utf8mb4,290,da_0900_as,cs) \ |
241 |
| - X(utf8mb4,256,de_pb_0900_ai,ci) \ |
242 |
| - X(utf8mb4,279,de_pb_0900_as,cs) \ |
243 |
| - X(utf8mb4,273,eo_0900_ai,ci) \ |
244 |
| - X(utf8mb4,296,eo_0900_as,cs) \ |
| 244 | + X(utf8mb4,267,da_0900,ai_ci) \ |
| 245 | + X(utf8mb4,290,da_0900,as_cs) \ |
| 246 | + X(utf8mb4,256,de_pb_0900,ai_ci) \ |
| 247 | + X(utf8mb4,279,de_pb_0900,as_cs) \ |
| 248 | + X(utf8mb4,273,eo_0900,ai_ci) \ |
| 249 | + X(utf8mb4,296,eo_0900,as_cs) \ |
245 | 250 | X(utf8mb4,241,esperanto,ci) \
|
246 | 251 | X(utf8mb4,230,estonian,ci) \
|
247 |
| - X(utf8mb4,263,es_0900_ai,ci) \ |
248 |
| - X(utf8mb4,286,es_0900_as,cs) \ |
249 |
| - X(utf8mb4,270,es_trad_0900_ai,ci) \ |
250 |
| - X(utf8mb4,293,es_trad_0900_as,cs) \ |
251 |
| - X(utf8mb4,262,et_0900_ai,ci) \ |
252 |
| - X(utf8mb4,285,et_0900_as,cs) \ |
| 252 | + X(utf8mb4,263,es_0900,ai_ci) \ |
| 253 | + X(utf8mb4,286,es_0900,as_cs) \ |
| 254 | + X(utf8mb4,270,es_trad_0900,ai_ci) \ |
| 255 | + X(utf8mb4,293,es_trad_0900,as_cs) \ |
| 256 | + X(utf8mb4,262,et_0900,ai_ci) \ |
| 257 | + X(utf8mb4,285,et_0900,as_cs) \ |
253 | 258 | X(utf8mb4,45,general,ci) \
|
254 | 259 | X(utf8mb4,244,german2,ci) \
|
255 |
| - X(utf8mb4,275,hr_0900_ai,ci) \ |
256 |
| - X(utf8mb4,298,hr_0900_as,cs) \ |
| 260 | + X(utf8mb4,275,hr_0900,ai_ci) \ |
| 261 | + X(utf8mb4,298,hr_0900,as_cs) \ |
257 | 262 | X(utf8mb4,242,hungarian,ci) \
|
258 |
| - X(utf8mb4,274,hu_0900_ai,ci) \ |
259 |
| - X(utf8mb4,297,hu_0900_as,cs) \ |
| 263 | + X(utf8mb4,274,hu_0900,ai_ci) \ |
| 264 | + X(utf8mb4,297,hu_0900,as_cs) \ |
260 | 265 | X(utf8mb4,225,icelandic,ci) \
|
261 |
| - X(utf8mb4,257,is_0900_ai,ci) \ |
262 |
| - X(utf8mb4,280,is_0900_as,cs) \ |
263 |
| - X(utf8mb4,303,ja_0900_as,cs) \ |
| 266 | + X(utf8mb4,257,is_0900,ai_ci) \ |
| 267 | + X(utf8mb4,280,is_0900,as_cs) \ |
| 268 | + X(utf8mb4,303,ja_0900,as_cs) \ |
264 | 269 | X(utf8mb4,226,latvian,ci) \
|
265 |
| - X(utf8mb4,271,la_0900_ai,ci) \ |
266 |
| - X(utf8mb4,294,la_0900_as,cs) \ |
| 270 | + X(utf8mb4,271,la_0900,ai_ci) \ |
| 271 | + X(utf8mb4,294,la_0900,as_cs) \ |
267 | 272 | X(utf8mb4,236,lithuanian,ci) \
|
268 |
| - X(utf8mb4,268,lt_0900_ai,ci) \ |
269 |
| - X(utf8mb4,291,lt_0900_as,cs) \ |
270 |
| - X(utf8mb4,258,lv_0900_ai,ci) \ |
271 |
| - X(utf8mb4,281,lv_0900_as,cs) \ |
| 273 | + X(utf8mb4,268,lt_0900,ai_ci) \ |
| 274 | + X(utf8mb4,291,lt_0900,as_cs) \ |
| 275 | + X(utf8mb4,258,lv_0900,ai_ci) \ |
| 276 | + X(utf8mb4,281,lv_0900,as_cs) \ |
272 | 277 | X(utf8mb4,240,persian,ci) \
|
273 |
| - X(utf8mb4,261,pl_0900_ai,ci) \ |
274 |
| - X(utf8mb4,284,pl_0900_as,cs) \ |
| 278 | + X(utf8mb4,261,pl_0900,ai_ci) \ |
| 279 | + X(utf8mb4,284,pl_0900,as_cs) \ |
275 | 280 | X(utf8mb4,229,polish,ci) \
|
276 | 281 | X(utf8mb4,227,romanian,ci) \
|
277 | 282 | X(utf8mb4,239,roman,ci) \
|
278 |
| - X(utf8mb4,259,ro_0900_ai,ci) \ |
279 |
| - X(utf8mb4,282,ro_0900_as,cs) \ |
| 283 | + X(utf8mb4,259,ro_0900,ai_ci) \ |
| 284 | + X(utf8mb4,282,ro_0900,as_cs) \ |
280 | 285 | X(utf8mb4,243,sinhala,ci) \
|
281 |
| - X(utf8mb4,269,sk_0900_ai,ci) \ |
282 |
| - X(utf8mb4,292,sk_0900_as,cs) \ |
| 286 | + X(utf8mb4,269,sk_0900,ai_ci) \ |
| 287 | + X(utf8mb4,292,sk_0900,as_cs) \ |
283 | 288 | X(utf8mb4,237,slovak,ci) \
|
284 | 289 | X(utf8mb4,228,slovenian,ci) \
|
285 |
| - X(utf8mb4,260,sl_0900_ai,ci) \ |
286 |
| - X(utf8mb4,283,sl_0900_as,cs) \ |
| 290 | + X(utf8mb4,260,sl_0900,ai_ci) \ |
| 291 | + X(utf8mb4,283,sl_0900,as_cs) \ |
287 | 292 | X(utf8mb4,238,spanish2,ci) \
|
288 | 293 | X(utf8mb4,231,spanish,ci) \
|
289 |
| - X(utf8mb4,264,sv_0900_ai,ci) \ |
290 |
| - X(utf8mb4,287,sv_0900_as,cs) \ |
| 294 | + X(utf8mb4,264,sv_0900,ai_ci) \ |
| 295 | + X(utf8mb4,287,sv_0900,as_cs) \ |
291 | 296 | X(utf8mb4,232,swedish,ci) \
|
292 |
| - X(utf8mb4,265,tr_0900_ai,ci) \ |
293 |
| - X(utf8mb4,288,tr_0900_as,cs) \ |
| 297 | + X(utf8mb4,265,tr_0900,ai_ci) \ |
| 298 | + X(utf8mb4,288,tr_0900,as_cs) \ |
294 | 299 | X(utf8mb4,233,turkish,ci) \
|
295 | 300 | X(utf8mb4,246,unicode_520,ci) \
|
296 | 301 | X(utf8mb4,224,unicode,ci) \
|
297 | 302 | X(utf8mb4,247,vietnamese,ci) \
|
298 |
| - X(utf8mb4,277,vi_0900_ai,ci) \ |
299 |
| - X(utf8mb4,300,vi_0900_as,cs) \ |
| 303 | + X(utf8mb4,277,vi_0900,ai_ci) \ |
| 304 | + X(utf8mb4,300,vi_0900,as_cs) \ |
| 305 | + COLLATIONS_utf8mb4_EXTRA |
| 306 | + |
| 307 | +#define COLLATIONS_utf8mb4_EXTRA |
300 | 308 |
|
301 | 309 |
|
302 | 310 | #define COLLATIONS_cp1251(X) \
|
|
0 commit comments