diff options
author | monty@narttu.mysql.fi <> | 2003-07-03 11:55:36 +0300 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-07-03 11:55:36 +0300 |
commit | c21728f8c864c19ac462ded81c276dc08319de03 (patch) | |
tree | 4e483a8cee2c75d62005137058f7fc6cf866aaf7 /include/my_global.h | |
parent | b41cc923738625ce986966e723adc68dd45b2d09 (diff) | |
download | mariadb-git-c21728f8c864c19ac462ded81c276dc08319de03.tar.gz |
Cleaner implementation if INSERT ... SELECT with same tables
Tests cleanup (put drop database first in tests)
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/my_global.h b/include/my_global.h index 03f4db1b5ab..673e5a22868 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -893,8 +893,11 @@ typedef union { double v; long m[2]; } doubleget_union; -#define doubleget(V,M) { ((doubleget_union *)&V)->m[0] = *((long*) M); \ - ((doubleget_union *)&V)->m[1] = *(((long*) M)+1); } +#define doubleget(V,M) \ +{ doubleget_union _tmp; \ + _tmp.m[0] = *((long*)(M)); \ + _tmp.m[1] = *(((long*) (M))+1); \ + (V) = _tmp.v; } #define doublestore(T,V) { *((long *) T) = ((doubleget_union *)&V)->m[0]; \ *(((long *) T)+1) = ((doubleget_union *)&V)->m[1]; } #define float4get(V,M) { *((long *) &(V)) = *((long*) (M)); } |