Commit 58590de5 authored by df@pippilotta.erinye.com's avatar df@pippilotta.erinye.com

Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1

into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
parents 12a7af37 a419ead3
...@@ -71,14 +71,22 @@ AC_SUBST(AVAILABLE_LANGUAGES) ...@@ -71,14 +71,22 @@ AC_SUBST(AVAILABLE_LANGUAGES)
# Canonicalize the configuration name. # Canonicalize the configuration name.
SYSTEM_TYPE="$host_vendor-$host_os"
MACHINE_TYPE="$host_cpu" # Check whether --with-system-type or --without-system-type was given.
AC_ARG_WITH(system-type,
[ --with-system-type Set the system type, like "sun-solaris10"],
[SYSTEM_TYPE="$withval"],
[SYSTEM_TYPE="$host_vendor-$host_os"])
AC_ARG_WITH(machine-type,
[ --with-machine-type Set the machine type, like "powerpc"],
[MACHINE_TYPE="$withval"],
[MACHINE_TYPE="$host_cpu"])
AC_SUBST(SYSTEM_TYPE) AC_SUBST(SYSTEM_TYPE)
AC_DEFINE_UNQUOTED([SYSTEM_TYPE], ["$SYSTEM_TYPE"], AC_DEFINE_UNQUOTED([SYSTEM_TYPE], ["$SYSTEM_TYPE"],
[Name of system, eg solaris]) [Name of system, eg sun-solaris])
AC_SUBST(MACHINE_TYPE) AC_SUBST(MACHINE_TYPE)
AC_DEFINE_UNQUOTED([MACHINE_TYPE], ["$MACHINE_TYPE"], AC_DEFINE_UNQUOTED([MACHINE_TYPE], ["$MACHINE_TYPE"],
[Machine type name, eg sun10]) [Machine type name, eg sparc])
# Detect intel x86 like processor # Detect intel x86 like processor
BASE_MACHINE_TYPE=$MACHINE_TYPE BASE_MACHINE_TYPE=$MACHINE_TYPE
......
...@@ -6457,6 +6457,7 @@ Field *Field_string::new_field(MEM_ROOT *root, struct st_table *new_table, ...@@ -6457,6 +6457,7 @@ Field *Field_string::new_field(MEM_ROOT *root, struct st_table *new_table,
is 2. is 2.
****************************************************************************/ ****************************************************************************/
const uint Field_varstring::MAX_SIZE= UINT_MAX16;
int Field_varstring::store(const char *from,uint length,CHARSET_INFO *cs) int Field_varstring::store(const char *from,uint length,CHARSET_INFO *cs)
{ {
......
...@@ -1183,7 +1183,7 @@ public: ...@@ -1183,7 +1183,7 @@ public:
The maximum space available in a Field_varstring, in bytes. See The maximum space available in a Field_varstring, in bytes. See
length_bytes. length_bytes.
*/ */
static const uint MAX_SIZE= UINT_MAX16; static const uint MAX_SIZE;
/* Store number of bytes used to store length (1 or 2) */ /* Store number of bytes used to store length (1 or 2) */
uint32 length_bytes; uint32 length_bytes;
Field_varstring(uchar *ptr_arg, Field_varstring(uchar *ptr_arg,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment