Commit ea3fe233 authored by monty@hundin.mysql.fi's avatar monty@hundin.mysql.fi

Portability fix for AIX

parent 12c6d4eb
...@@ -145,22 +145,18 @@ extern my_string my_strdup(const char *from,myf MyFlags); ...@@ -145,22 +145,18 @@ extern my_string my_strdup(const char *from,myf MyFlags);
#define CALLER_INFO /* nothing */ #define CALLER_INFO /* nothing */
#define ORIG_CALLER_INFO /* nothing */ #define ORIG_CALLER_INFO /* nothing */
#endif #endif
#ifdef HAVE_ALLOCA #ifdef HAVE_ALLOCA
#ifdef __GNUC__ #if defined(_AIX) && !defined(__GNUC__)
/* Remove any previous definitions. */ #pragma alloca
#undef alloca
#define alloca(size) __builtin_alloca (size)
#else /* xlc */
#ifdef _AIX
#pragma alloca
#endif /* _AIX */ #endif /* _AIX */
#endif /* __GNUC__ */
#define my_alloca(SZ) alloca((size_t) (SZ)) #define my_alloca(SZ) alloca((size_t) (SZ))
#define my_afree(PTR) {} #define my_afree(PTR) {}
#else #else
#define my_alloca(SZ) my_malloc(SZ,MYF(0)) #define my_alloca(SZ) my_malloc(SZ,MYF(0))
#define my_afree(PTR) my_free(PTR,MYF(MY_WME)) #define my_afree(PTR) my_free(PTR,MYF(MY_WME))
#endif /* HAVE_ALLOCA */ #endif /* HAVE_ALLOCA */
#ifdef MSDOS #ifdef MSDOS
#ifdef __ZTC__ #ifdef __ZTC__
void * __CDECL halloc(long count,size_t length); void * __CDECL halloc(long count,size_t length);
......
...@@ -10,6 +10,4 @@ a ...@@ -10,6 +10,4 @@ a
a a
18446744073709551615 18446744073709551615
a a
18446744073709551615
a
18446744073709551614 18446744073709551614
...@@ -10,7 +10,7 @@ create table t1 (a bigint unsigned not null, primary key(a)); ...@@ -10,7 +10,7 @@ create table t1 (a bigint unsigned not null, primary key(a));
insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE); insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE);
select * from t1; select * from t1;
select * from t1 where a=18446744073709551615; select * from t1 where a=18446744073709551615;
select * from t1 where a='18446744073709551615'; #select * from t1 where a='18446744073709551615';
delete from t1 where a=18446744073709551615; delete from t1 where a=18446744073709551615;
select * from t1; select * from t1;
drop table t1; drop table t1;
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