Commit eff919f5 authored by unknown's avatar unknown

Merge serg.mylan:/usr/home/serg/Abk/mysql-4.1

into serg.mylan:/usr/home/serg/Abk/mysql-5.0


innobase/include/univ.i:
  Auto merged
sql/item_create.cc:
  Auto merged
parents 036e9fcf 3316e3d3
...@@ -80,10 +80,8 @@ memory is read outside the allocated blocks. */ ...@@ -80,10 +80,8 @@ memory is read outside the allocated blocks. */
/* Make a non-inline debug version */ /* Make a non-inline debug version */
#ifdef DBUG_ON
# define UNIV_DEBUG
#endif /* DBUG_ON */
/* /*
#define UNIV_DEBUG
#define UNIV_MEM_DEBUG #define UNIV_MEM_DEBUG
#define UNIV_IBUF_DEBUG #define UNIV_IBUF_DEBUG
#define UNIV_SYNC_DEBUG #define UNIV_SYNC_DEBUG
...@@ -122,7 +120,7 @@ by one. */ ...@@ -122,7 +120,7 @@ by one. */
/* Definition for inline version */ /* Definition for inline version */
#ifdef __WIN__ #ifdef __WIN__
#define UNIV_INLINE __inline #define UNIV_INLINE __inline
#else #else
/* config.h contains the right def for 'inline' for the current compiler */ /* config.h contains the right def for 'inline' for the current compiler */
#if (__GNUC__ == 2) #if (__GNUC__ == 2)
......
...@@ -370,13 +370,14 @@ Item *create_func_space(Item *a) ...@@ -370,13 +370,14 @@ Item *create_func_space(Item *a)
{ {
uint dummy_errors; uint dummy_errors;
sp= new Item_string("",0,cs); sp= new Item_string("",0,cs);
sp->str_value.copy(" ", 1, &my_charset_latin1, cs, &dummy_errors); if (sp)
sp->str_value.copy(" ", 1, &my_charset_latin1, cs, &dummy_errors);
} }
else else
{ {
sp= new Item_string(" ",1,cs); sp= new Item_string(" ",1,cs);
} }
return new Item_func_repeat(sp, a); return sp ? new Item_func_repeat(sp, a) : 0;
} }
Item *create_func_soundex(Item* a) Item *create_func_soundex(Item* a)
......
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