List:Internals« Previous MessageNext Message »
From:bar Date:October 27 2005 12:40pm
Subject:bk commit into 4.1 tree (bar:1.2468)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of bar. When bar does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2468 05/10/27 17:40:21 bar@stripped +1 -0
  conf_to_src.c:
    Dump MY_CS_CSSORT when it's necessary.

  strings/conf_to_src.c
    1.15 05/10/27 17:39:10 bar@stripped +11 -2
    Dump MY_CS_CSSORT when it's necessary.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	bar
# Host:	bar.intranet.mysql.r18.ru
# Root:	/usr/home/bar/mysql-4.1.12076

--- 1.14/strings/conf_to_src.c	2005-10-27 16:48:00 +05:00
+++ 1.15/strings/conf_to_src.c	2005-10-27 17:39:10 +05:00
@@ -169,13 +169,22 @@
   return FALSE;
 }
 
+static int
+is_case_sensitive(CHARSET_INFO *cs)
+{
+ return (cs->sort_order &&
+         cs->sort_order['A'] < cs->sort_order['a'] &&
+         cs->sort_order['a'] < cs->sort_order['B']) ? 1 : 0;
+}
+
 void dispcset(FILE *f,CHARSET_INFO *cs)
 {
   fprintf(f,"{\n");
   fprintf(f,"  %d,%d,%d,\n",cs->number,0,0);
-  fprintf(f,"  MY_CS_COMPILED%s%s,\n",
+  fprintf(f,"  MY_CS_COMPILED%s%s%s,\n",
           cs->state & MY_CS_BINSORT ? "|MY_CS_BINSORT" : "",
-          cs->state & MY_CS_PRIMARY ? "|MY_CS_PRIMARY" : "");
+          cs->state & MY_CS_PRIMARY ? "|MY_CS_PRIMARY" : "",
+          is_case_sensitive(cs)     ? "|MY_CS_CSSORT"  : "");
   
   if (cs->name)
   {
Thread
bk commit into 4.1 tree (bar:1.2468)bar27 Oct